From 09260c8021d4aee80c4cc14f87c87f4a74f2953a Mon Sep 17 00:00:00 2001 From: JFronny Date: Tue, 1 Nov 2022 18:09:26 +0100 Subject: [PATCH] Attempt maven publish --- .woodpecker.yml | 12 ++++++++++++ README.md | 6 +++--- build.gradle.kts | 2 +- gson-compile-annotations/build.gradle.kts | 3 ++- gson-compile-core/build.gradle.kts | 1 + gson-compile-example/build.gradle.kts | 2 +- gson-compile-processor/build.gradle.kts | 3 ++- settings.gradle.kts | 10 ++++++++++ 8 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..0f5b9a9 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,12 @@ +pipeline: + maven: + image: gradle:alpine + pull: true + environment: + - GRADLE_OPTS=-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2G + - GRADLE_USER_HOME=${CI_WORKSPACE}/.gradle + commands: + - gradle publish -Pmaven="https://maven.frohnmeyer-wds.de/artifacts" + secrets: [ maven_token, maven_name ] + when: + - branch: master \ No newline at end of file diff --git a/README.md b/README.md index 60478d8..b42d77e 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,6 @@ Use `@GPrefer` to choose one construction method if multiple are available - Static classes (for configs) ## Credit -The Gson-Compile processor is based on [gsonvalue](https://github.com/evant/gsonvalue) and [value-processor](https://github.com/evant/value-processor) by Eva Tatarka. -The API was inspired by [kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization) by Jetbrains -The serialization is powered by [my fork](https://gitlab.com/JFronny/gson-comments) of [gson](https://github.com/google/gson) by Google +- The Gson-Compile processor is based on [gsonvalue](https://github.com/evant/gsonvalue) and [value-processor](https://github.com/evant/value-processor) by Eva Tatarka. +- The API was inspired by [kotlinx.serialization](https://github.com/Kotlin/kotlinx.serialization) by Jetbrains +- The serialization is powered by [my fork](https://gitlab.com/JFronny/gson-comments) of [gson](https://github.com/google/gson) by Google diff --git a/build.gradle.kts b/build.gradle.kts index 3069ae8..070cb97 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,2 +1,2 @@ group = "io.gitlab.jfronny" -version = "1.0-SNAPSHOT" +version = "1.0-SNAPSHOT" \ No newline at end of file diff --git a/gson-compile-annotations/build.gradle.kts b/gson-compile-annotations/build.gradle.kts index 523f275..94c1290 100644 --- a/gson-compile-annotations/build.gradle.kts +++ b/gson-compile-annotations/build.gradle.kts @@ -1,5 +1,6 @@ plugins { - id("java") + java + id("jf.maven-publish") } group = "io.gitlab.jfronny.gson" diff --git a/gson-compile-core/build.gradle.kts b/gson-compile-core/build.gradle.kts index 5f76c00..74fb347 100644 --- a/gson-compile-core/build.gradle.kts +++ b/gson-compile-core/build.gradle.kts @@ -1,5 +1,6 @@ plugins { `java-library` + id("jf.maven-publish") } group = "io.gitlab.jfronny.gson" diff --git a/gson-compile-example/build.gradle.kts b/gson-compile-example/build.gradle.kts index ad6f175..3b18a41 100644 --- a/gson-compile-example/build.gradle.kts +++ b/gson-compile-example/build.gradle.kts @@ -1,5 +1,5 @@ plugins { - id("java") + java } group = "io.gitlab.jfronny.gson" diff --git a/gson-compile-processor/build.gradle.kts b/gson-compile-processor/build.gradle.kts index c2d257f..7a71788 100644 --- a/gson-compile-processor/build.gradle.kts +++ b/gson-compile-processor/build.gradle.kts @@ -1,5 +1,6 @@ plugins { - id("java") + java + id("jf.maven-publish") } group = "io.gitlab.jfronny.gson" diff --git a/settings.gradle.kts b/settings.gradle.kts index 2289787..7e05e5c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,3 +1,13 @@ +pluginManagement { + repositories { + maven("https://maven.frohnmeyer-wds.de/artifacts") + mavenCentral() + } + plugins { + id("jf.maven-publish") version "1.1-SNAPSHOT" + } +} + rootProject.name = "gson-compile" include("gson-compile-core") include("gson-compile-processor")