JDK8 compat

This commit is contained in:
2026-05-15 02:34:19 +02:00
parent 2a97d017b7
commit 363160441d
+47 -47
View File
@@ -1,7 +1,7 @@
plugins { plugins {
id 'java-library' id 'java-library'
id "jacoco" id "jacoco"
id "com.vanniktech.maven.publish" version "0.28.0" // id "com.vanniktech.maven.publish" version "0.28.0"
} }
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
@@ -332,49 +332,49 @@ tasks.withType(PublishToMavenLocal) {
//Maven central Start //Maven central Start
//Disabling due to java8 incompat, only needed to manually publishing anyways //Disabling due to java8 incompat, only needed to manually publishing anyways
signing.useGpgCmd() //signing.useGpgCmd()
//
import com.vanniktech.maven.publish.SonatypeHost //import com.vanniktech.maven.publish.SonatypeHost
import com.vanniktech.maven.publish.JavaLibrary //import com.vanniktech.maven.publish.JavaLibrary
import com.vanniktech.maven.publish.JavadocJar //import com.vanniktech.maven.publish.JavadocJar
//
mavenPublishing { //mavenPublishing {
configure(new JavaLibrary(new JavadocJar.None(), true)) // configure(new JavaLibrary(new JavadocJar.None(), true))
} //}
//
mavenPublishing { //mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) // publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
//
signAllPublications() // signAllPublications()
pom { // pom {
name = 'Primitive Collections' // name = 'Primitive Collections'
description = 'A Primitive Collection library that reduces memory usage and improves performance' // description = 'A Primitive Collection library that reduces memory usage and improves performance'
url = 'https://github.com/Speiger/Primitive-Collections' // url = 'https://github.com/Speiger/Primitive-Collections'
version = project.version // version = project.version
group = 'io.github.speiger' // group = 'io.github.speiger'
licenses { // licenses {
license { // license {
name = 'The Apache License, Version 2.0' // name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' // url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
} // }
} // }
//
developers { // developers {
developer { // developer {
id = 'speiger' // id = 'speiger'
name = 'Speiger' // name = 'Speiger'
} // }
} // }
//
scm { // scm {
connection = 'scm:git:git://github.com/Speiger/Primitive-Collections.git' // connection = 'scm:git:git://github.com/Speiger/Primitive-Collections.git'
developerConnection = 'scm:git:ssh://github.com:Speiger/Primitive-Collections.git' // developerConnection = 'scm:git:ssh://github.com:Speiger/Primitive-Collections.git'
url = 'https://github.com/Speiger/Primitive-Collections' // url = 'https://github.com/Speiger/Primitive-Collections'
} // }
//
issueManagement { // issueManagement {
system = 'github' // system = 'github'
url = 'https://github.com/Speiger/Primitive-Collections/issues' // url = 'https://github.com/Speiger/Primitive-Collections/issues'
} // }
} // }
} //}