Skip to content

Commit

Permalink
publishing repo configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Aug 15, 2024
1 parent 78bb23a commit d95e559
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 16 deletions.
36 changes: 20 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ allprojects {
repositories {
mavenCentral()
}

}

publishing {
Expand Down Expand Up @@ -60,27 +61,30 @@ publishing {
}
}
}
}

repositories {
maven {
name = "OSSRH"
setUrl("https://s01.oss.sonatype.org/content/repositories/snapshots/")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
maven {
name = "GitHubPackages"
setUrl("https://maven.pkg.github.com/xemantic/xemantic-kotlin-swing-dsl")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
repositories {
maven {
name = "GitHubPackages"
setUrl("https://maven.pkg.github.com/xemantic/xemantic-kotlin-swing-dsl")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
// maven {
// name = "OSSRH"
// setUrl("https://s01.oss.sonatype.org/content/repositories/snapshots/")
// credentials {
// username = System.getenv("MAVEN_USERNAME")
// password = System.getenv("MAVEN_PASSWORD")
// }
// }
}

}



signing {
if (
project.hasProperty("signing.keyId")
Expand Down
12 changes: 12 additions & 0 deletions xemantic-kotlin-swing-dsl-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,16 @@ publishing {
}
}
}

repositories {
maven {
name = "GitHubPackages"
setUrl("https://maven.pkg.github.com/xemantic/xemantic-kotlin-swing-dsl")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}

}
12 changes: 12 additions & 0 deletions xemantic-kotlin-swing-dsl-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,16 @@ publishing {
}
}
}

repositories {
maven {
name = "GitHubPackages"
setUrl("https://maven.pkg.github.com/xemantic/xemantic-kotlin-swing-dsl")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}

}

0 comments on commit d95e559

Please sign in to comment.