Launcher/build.gradle

65 lines
1.7 KiB
Groovy
Raw Normal View History

plugins {
2020-03-01 12:44:14 +03:00
id 'com.github.johnrengelman.shadow' version '5.2.0' apply false
id 'maven-publish'
id 'signing'
id 'org.openjfx.javafxplugin' version '0.0.8' apply false
}
group = 'pro.gravit.launcher'
2020-05-29 20:13:55 +03:00
version = '5.1.7-SNAPSHOT'
apply from: 'props.gradle'
configure(subprojects.findAll { it.name != 'modules' }) {
2019-05-15 14:11:22 +03:00
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
2020-03-01 12:44:14 +03:00
apply plugin: 'java-library'
2019-01-09 11:29:54 +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
}
}
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"
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
options.incremental = true // one flag, and things will get MUCH faster
}
}
wrapper {
2019-05-15 14:11:22 +03:00
distributionType = Wrapper.DistributionType.ALL
}
defaultTasks 'build'
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')
}
}
}
}
}