|
|
|
@ -6,7 +6,7 @@ plugins {
|
|
|
|
|
id 'java'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group 'net.william278'
|
|
|
|
|
group 'org.inksnow.husk'
|
|
|
|
|
version "2.0.5${versionMetadata()}"
|
|
|
|
|
defaultTasks 'licenseFormat', 'build'
|
|
|
|
|
|
|
|
|
@ -27,7 +27,7 @@ dependencies {
|
|
|
|
|
tasks {
|
|
|
|
|
compileJava {
|
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
|
options.release.set(11)
|
|
|
|
|
options.release.set(8)
|
|
|
|
|
}
|
|
|
|
|
jar {
|
|
|
|
|
manifest {
|
|
|
|
@ -65,36 +65,19 @@ test {
|
|
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
|
repositories {
|
|
|
|
|
if (System.getenv("RELEASES_MAVEN_USERNAME") != null) {
|
|
|
|
|
maven {
|
|
|
|
|
name = "william278-releases"
|
|
|
|
|
url = "https://repo.william278.net/releases"
|
|
|
|
|
name = 'husk-release'
|
|
|
|
|
url = findProperty("repository.huskrelease.url")
|
|
|
|
|
credentials {
|
|
|
|
|
username = System.getenv("RELEASES_MAVEN_USERNAME")
|
|
|
|
|
password = System.getenv("RELEASES_MAVEN_PASSWORD")
|
|
|
|
|
}
|
|
|
|
|
authentication {
|
|
|
|
|
basic(BasicAuthentication)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (System.getenv("SNAPSHOTS_MAVEN_USERNAME") != null) {
|
|
|
|
|
maven {
|
|
|
|
|
name = "william278-snapshots"
|
|
|
|
|
url = "https://repo.william278.net/snapshots"
|
|
|
|
|
credentials {
|
|
|
|
|
username = System.getenv("SNAPSHOTS_MAVEN_USERNAME")
|
|
|
|
|
password = System.getenv("SNAPSHOTS_MAVEN_PASSWORD")
|
|
|
|
|
}
|
|
|
|
|
authentication {
|
|
|
|
|
basic(BasicAuthentication)
|
|
|
|
|
username = findProperty("repository.huskrelease.username")
|
|
|
|
|
password = findProperty("repository.huskrelease.password")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
publications {
|
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
|
groupId = 'net.william278'
|
|
|
|
|
groupId = 'org.inksnow.husk'
|
|
|
|
|
artifactId = 'desertwell'
|
|
|
|
|
version = "$rootProject.version"
|
|
|
|
|
artifact shadowJar
|
|
|
|
@ -103,7 +86,6 @@ publishing {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings('GrMethodMayBeStatic')
|
|
|
|
|
def versionMetadata() {
|
|
|
|
|