downgrade version to java 8

master
InkerBot 3 months ago
parent 718315b5c5
commit 9962d590c7

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

Loading…
Cancel
Save