Launcher/build.gradle

58 lines
1.6 KiB
Groovy
Raw Normal View History

plugins {
id 'com.github.johnrengelman.shadow' version '5.0.0' apply false
id 'maven-publish'
id 'signing'
}
group = 'pro.gravit.launcher'
version = '5.0.5-SNAPSHOT'
configure(subprojects.findAll { it.name != 'modules' }) {
2019-05-15 14:11:22 +03:00
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
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()
maven { url 'http://oss.sonatype.org/content/groups/public' }
maven {
url "http://clojars.org/repo/"
}
}
configurations {
apt
aptCompileOnly
aptOnly
aptOnly.extendsFrom apt, aptCompileOnly
compile.extendsFrom apt
compileOnly.extendsFrom aptCompileOnly
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.annotationProcessorPath = configurations.aptOnly
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')
}
}
}
}
}