2019-04-12 23:22:24 +03:00
|
|
|
plugins {
|
|
|
|
id 'com.github.johnrengelman.shadow' version '5.0.0' apply false
|
2019-08-10 21:53:12 +03:00
|
|
|
id 'maven-publish'
|
2019-08-12 23:20:28 +03:00
|
|
|
id 'signing'
|
2019-04-12 23:22:24 +03:00
|
|
|
}
|
2019-08-13 14:49:41 +03:00
|
|
|
group = 'pro.gravit.launcher'
|
2019-08-10 21:53:12 +03:00
|
|
|
version = '5.0.5-SNAPSHOT'
|
2019-04-12 23:22:24 +03:00
|
|
|
|
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'
|
|
|
|
apply plugin: 'java'
|
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()
|
|
|
|
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
|
|
|
|
}
|
2019-01-18 01:30:55 +03:00
|
|
|
}
|
|
|
|
|
2019-05-03 14:59:32 +03:00
|
|
|
subprojects {
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.incremental = true // one flag, and things will get MUCH faster
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-10 21:53:12 +03:00
|
|
|
|
2019-08-13 14:49:41 +03:00
|
|
|
if (hasProperty('mavenUsername') && hasProperty('mavenPassword'))
|
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
// change URLs to point to your repos, e.g. http://my.org/repo
|
|
|
|
url = version.endsWith('SNAPSHOT') ? 'https://oss.sonatype.org/content/repositories/snapshots/' : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|