Skip to content

Commit

Permalink
feat: gradle publish ready [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed Oct 20, 2024
1 parent 5eae131 commit 84a19d9
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 26 deletions.
2 changes: 2 additions & 0 deletions orchestrator/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GITHUB_ACTOR=
GITHUB_TOKEN=
1 change: 1 addition & 0 deletions orchestrator/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.env
rdfc_packages
22 changes: 1 addition & 21 deletions orchestrator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = "technology.idlab"

version = "0.0.4"
version = "0.0.1"

kotlin { jvmToolchain(22) }

Expand All @@ -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<MavenPublication>("gpr") {
artifactId = "orchestrator"
from(components["java"])
}
}
}
29 changes: 27 additions & 2 deletions orchestrator/rdfc-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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) }

Expand Down Expand Up @@ -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<MavenPublication>("gpr") {
from(components["java"])
groupId = "technology.idlab"
artifactId = "rdfc-core"
version = "0.0.1"
}
}
}
2 changes: 1 addition & 1 deletion orchestrator/rdfc-orchestrator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = "technology.idlab"

version = "0.0.4"
version = "0.0.1"

kotlin { jvmToolchain(22) }

Expand Down
29 changes: 27 additions & 2 deletions orchestrator/rdfc-processor/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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) }

Expand All @@ -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<MavenPublication>("gpr") {
from(components["java"])
groupId = "technology.idlab"
artifactId = "rdfc-processor"
version = "0.0.1"
}
}
}

0 comments on commit 84a19d9

Please sign in to comment.