2019-04-12 23:22:24 +03:00
|
|
|
plugins {
|
2023-02-25 14:42:17 +03:00
|
|
|
id 'com.github.johnrengelman.shadow' version '7.1.2' apply false
|
2019-08-10 21:53:12 +03:00
|
|
|
id 'maven-publish'
|
2019-08-12 23:20:28 +03:00
|
|
|
id 'signing'
|
2021-09-04 02:18:31 +03:00
|
|
|
id 'org.openjfx.javafxplugin' version '0.0.10' apply false
|
2019-04-12 23:22:24 +03:00
|
|
|
}
|
2019-08-13 14:49:41 +03:00
|
|
|
group = 'pro.gravit.launcher'
|
2023-02-25 14:42:17 +03:00
|
|
|
version = '5.3.6-SNAPSHOT'
|
2019-04-12 23:22:24 +03:00
|
|
|
|
2020-03-01 14:34:31 +03:00
|
|
|
apply from: 'props.gradle'
|
|
|
|
|
2019-07-12 18:48:35 +03:00
|
|
|
configure(subprojects.findAll { it.name != 'modules' }) {
|
2019-05-15 14:11:22 +03:00
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'eclipse'
|
2020-02-25 09:38:11 +03:00
|
|
|
apply plugin: 'java'
|
2020-03-01 12:44:14 +03:00
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
2019-01-09 11:29:54 +03:00
|
|
|
|
2019-06-02 05:08:35 +03:00
|
|
|
group = 'pro.gravit'
|
2019-05-03 14:00:01 +03:00
|
|
|
|
2019-05-15 14:11:22 +03:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2020-03-01 12:44:14 +03:00
|
|
|
maven { url 'https://oss.sonatype.org/content/groups/public' }
|
2019-05-15 14:11:22 +03:00
|
|
|
maven {
|
2020-03-01 12:44:14 +03:00
|
|
|
url "https://clojars.org/repo/"
|
2019-05-15 14:11:22 +03:00
|
|
|
}
|
2021-03-20 12:49:49 +03:00
|
|
|
maven {
|
|
|
|
url "https://jcenter.bintray.com/"
|
|
|
|
}
|
2021-11-09 10:12:31 +03:00
|
|
|
maven {
|
|
|
|
url "https://jitpack.io/"
|
|
|
|
}
|
2019-05-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
|
2020-03-01 12:44:14 +03:00
|
|
|
jar {
|
|
|
|
duplicatesStrategy = 'EXCLUDE'
|
|
|
|
}
|
|
|
|
|
|
|
|
eclipse {
|
|
|
|
classpath {
|
|
|
|
downloadSources = true
|
|
|
|
downloadJavadoc = true
|
|
|
|
}
|
2019-05-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = "UTF-8"
|
2019-12-17 08:52:53 +03:00
|
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
2019-08-13 15:20:10 +03:00
|
|
|
options.incremental = true // one flag, and things will get MUCH faster
|
2019-05-03 14:59:32 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-03 14:15:30 +03:00
|
|
|
wrapper {
|
2019-05-15 14:11:22 +03:00
|
|
|
distributionType = Wrapper.DistributionType.ALL
|
2019-02-03 14:15:30 +03:00
|
|
|
}
|
|
|
|
|
2019-01-18 01:30:55 +03:00
|
|
|
defaultTasks 'build'
|
2019-08-13 15:31:35 +03:00
|
|
|
if (hasProperty('mavenUsername') && hasProperty('mavenPassword') && hasProperty('mavenReleaseRepository') && hasProperty('mavenSnapshotRepository')) {
|
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url = version.endsWith('SNAPSHOT') ? getProperty('mavenSnapshotRepository') : getProperty('mavenReleaseRepository')
|
|
|
|
credentials {
|
|
|
|
username getProperty('mavenUsername')
|
|
|
|
password getProperty('mavenPassword')
|
|
|
|
}
|
2019-08-10 21:53:12 +03:00
|
|
|
}
|
2019-08-13 14:49:41 +03:00
|
|
|
}
|
2019-08-10 21:53:12 +03:00
|
|
|
}
|
|
|
|
}
|