diff --git a/orchestrator/.env.example b/orchestrator/.env.example new file mode 100644 index 0000000..17e9fd2 --- /dev/null +++ b/orchestrator/.env.example @@ -0,0 +1,2 @@ +GITHUB_ACTOR= +GITHUB_TOKEN= diff --git a/orchestrator/.gitignore b/orchestrator/.gitignore index f6e6873..f671401 100644 --- a/orchestrator/.gitignore +++ b/orchestrator/.gitignore @@ -1 +1,2 @@ +.env rdfc_packages diff --git a/orchestrator/build.gradle.kts b/orchestrator/build.gradle.kts index 63db85e..279f2f0 100644 --- a/orchestrator/build.gradle.kts +++ b/orchestrator/build.gradle.kts @@ -6,7 +6,7 @@ plugins { group = "technology.idlab" -version = "0.0.4" +version = "0.0.1" kotlin { jvmToolchain(22) } @@ -25,23 +25,3 @@ repositories { } } } - -publishing { - repositories { - maven { - name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/rdf-connect/orchestrator") - credentials { - username = env.fetchOrNull("GITHUB_ACTOR") ?: System.getenv("GITHUB_ACTOR") - password = env.fetchOrNull("GITHUB_TOKEN") ?: System.getenv("GITHUB_TOKEN") - } - } - } - - publications { - register("gpr") { - artifactId = "orchestrator" - from(components["java"]) - } - } -} diff --git a/orchestrator/rdfc-core/build.gradle.kts b/orchestrator/rdfc-core/build.gradle.kts index 566a14a..9a0f614 100644 --- a/orchestrator/rdfc-core/build.gradle.kts +++ b/orchestrator/rdfc-core/build.gradle.kts @@ -1,8 +1,11 @@ -plugins { kotlin("jvm") version "2.0.21" } +plugins { + kotlin("jvm") version "2.0.21" + id("maven-publish") +} group = "technology.idlab" -version = "0.0.4" +version = "0.0.1" kotlin { jvmToolchain(22) } @@ -34,3 +37,25 @@ tasks.test { showStandardStreams = true } } + +publishing { + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/rdf-connect/orchestrator") + credentials { + username = env.fetchOrNull("GITHUB_ACTOR") ?: System.getenv("GITHUB_ACTOR") + password = env.fetchOrNull("GITHUB_TOKEN") ?: System.getenv("GITHUB_TOKEN") + } + } + } + + publications { + create("gpr") { + from(components["java"]) + groupId = "technology.idlab" + artifactId = "rdfc-core" + version = "0.0.1" + } + } +} diff --git a/orchestrator/rdfc-orchestrator/build.gradle.kts b/orchestrator/rdfc-orchestrator/build.gradle.kts index 09d57a8..b671213 100644 --- a/orchestrator/rdfc-orchestrator/build.gradle.kts +++ b/orchestrator/rdfc-orchestrator/build.gradle.kts @@ -6,7 +6,7 @@ plugins { group = "technology.idlab" -version = "0.0.4" +version = "0.0.1" kotlin { jvmToolchain(22) } diff --git a/orchestrator/rdfc-processor/build.gradle.kts b/orchestrator/rdfc-processor/build.gradle.kts index 9a7ea6a..feafacc 100644 --- a/orchestrator/rdfc-processor/build.gradle.kts +++ b/orchestrator/rdfc-processor/build.gradle.kts @@ -1,8 +1,11 @@ -plugins { kotlin("jvm") version "2.0.21" } +plugins { + kotlin("jvm") version "2.0.21" + id("maven-publish") +} group = "technology.idlab" -version = "0.0.4" +version = "0.0.1" kotlin { jvmToolchain(22) } @@ -29,3 +32,25 @@ tasks.test { showStandardStreams = true } } + +publishing { + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/rdf-connect/orchestrator") + credentials { + username = env.fetchOrNull("GITHUB_ACTOR") ?: System.getenv("GITHUB_ACTOR") + password = env.fetchOrNull("GITHUB_TOKEN") ?: System.getenv("GITHUB_TOKEN") + } + } + } + + publications { + create("gpr") { + from(components["java"]) + groupId = "technology.idlab" + artifactId = "rdfc-processor" + version = "0.0.1" + } + } +}