From 961b47a58c4935af942e21c54b0af5544ba7fee7 Mon Sep 17 00:00:00 2001 From: Speiger Date: Sat, 30 Mar 2024 01:02:42 +0100 Subject: [PATCH] Fixed java8 compat --- build.gradle | 102 +++++++++++++++++++++++++-------------------------- 1 file changed, 50 insertions(+), 52 deletions(-) diff --git a/build.gradle b/build.gradle index 8e45b4f..4ccf2b3 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,6 @@ plugins { id 'java-library' id "jacoco" - id "com.vanniktech.maven.publish" version "0.28.0" } tasks.withType(JavaCompile) { @@ -327,56 +326,55 @@ tasks.withType(PublishToMavenLocal) { } } - //Maven central Start -import com.vanniktech.maven.publish.SonatypeHost -signing.useGpgCmd() +//Disabling due to java8 incompat, only needed to manually publishing anyways -import com.vanniktech.maven.publish.JavaLibrary -import com.vanniktech.maven.publish.JavadocJar - -mavenPublishing { - // the first parameter configures the -javadoc artifact, possible values: - // - `JavadocJar.None()` don't publish this artifact - // - `JavadocJar.Empty()` publish an emprt jar - // - `JavadocJar.Javadoc()` to publish standard javadocs - // the second whether to publish a sources jar - configure(new JavaLibrary(new JavadocJar.None(), true)) -} - -mavenPublishing { - publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) - - signAllPublications() - pom { - name = 'Primitive Collections' - description = 'A Primitive Collection library that reduces memory usage and improves performance' - url = 'https://github.com/Speiger/Primitive-Collections' - version = project.version - group = 'io.github.speiger' - licenses { - license { - name = 'The Apache License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - - developers { - developer { - id = 'speiger' - name = 'Speiger' - } - } - - scm { - connection = 'scm:git:git://github.com/Speiger/Primitive-Collections.git' - developerConnection = 'scm:git:ssh://github.com/Speiger/Primitive-Collections.git' - url = 'https://github.com/Speiger/Primitive-Collections' - } - - issueManagement { - system = 'github' - url = 'https://github.com/Speiger/Primitive-Collections/issues' - } - } -} \ No newline at end of file +//plugins { +// id "com.vanniktech.maven.publish" version "0.28.0" +//} +//signing.useGpgCmd() +// +//import com.vanniktech.maven.publish.SonatypeHost +//import com.vanniktech.maven.publish.JavaLibrary +//import com.vanniktech.maven.publish.JavadocJar +// +//mavenPublishing { +// configure(new JavaLibrary(new JavadocJar.None(), true)) +//} +// +//mavenPublishing { +// publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) +// +// signAllPublications() +// pom { +// name = 'Primitive Collections' +// description = 'A Primitive Collection library that reduces memory usage and improves performance' +// url = 'https://github.com/Speiger/Primitive-Collections' +// version = project.version +// group = 'io.github.speiger' +// licenses { +// license { +// name = 'The Apache License, Version 2.0' +// url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' +// } +// } +// +// developers { +// developer { +// id = 'speiger' +// name = 'Speiger' +// } +// } +// +// scm { +// connection = 'scm:git:git://github.com/Speiger/Primitive-Collections.git' +// developerConnection = 'scm:git:ssh://github.com/Speiger/Primitive-Collections.git' +// url = 'https://github.com/Speiger/Primitive-Collections' +// } +// +// issueManagement { +// system = 'github' +// url = 'https://github.com/Speiger/Primitive-Collections/issues' +// } +// } +//}