mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
70 lines
1.8 KiB
Groovy
70 lines
1.8 KiB
Groovy
plugins {
|
|
id 'com.github.johnrengelman.shadow' version '7.1.2' apply false
|
|
id 'maven-publish'
|
|
id 'signing'
|
|
id 'org.openjfx.javafxplugin' version '0.0.10' apply false
|
|
}
|
|
group = 'pro.gravit.launcher'
|
|
version = '5.3.6'
|
|
|
|
apply from: 'props.gradle'
|
|
|
|
configure(subprojects.findAll { it.name != 'modules' }) {
|
|
apply plugin: 'idea'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'java'
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
group = 'pro.gravit'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url 'https://oss.sonatype.org/content/groups/public' }
|
|
maven {
|
|
url "https://clojars.org/repo/"
|
|
}
|
|
maven {
|
|
url "https://jcenter.bintray.com/"
|
|
}
|
|
maven {
|
|
url "https://jitpack.io/"
|
|
}
|
|
}
|
|
|
|
jar {
|
|
duplicatesStrategy = 'EXCLUDE'
|
|
}
|
|
|
|
eclipse {
|
|
classpath {
|
|
downloadSources = true
|
|
downloadJavadoc = true
|
|
}
|
|
}
|
|
|
|
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 {
|
|
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')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|