Skip to content

Commit

Permalink
Endret libs til å bruke ny convention plugin for publishing libs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc3092 committed Jun 17, 2024
1 parent 1f7749a commit d13c197
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 93 deletions.
24 changes: 1 addition & 23 deletions libs/avro-schema/build.gradle
Original file line number Diff line number Diff line change
@@ -1,36 +1,14 @@
plugins {
id "dolly-libs"
id "dolly-libs-publish"

id 'com.github.davidmc24.gradle.plugin.avro' version '1.9.1'
id 'maven-publish'
}

sonarqube {
skipProject = true
}

if (project.hasProperty("releaseVersion")) {
version = releaseVersion
}

publishing {
repositories {
maven {
name = "github"
url = uri('https://maven.pkg.github.com/navikt/testnorge')
credentials(PasswordCredentials) {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}

dependencies {
implementation 'org.apache.avro:avro-compiler:1.11.3'
implementation 'org.apache.avro:avro-maven-plugin:1.11.3'
Expand Down
25 changes: 1 addition & 24 deletions libs/data-transfer-objects/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id "dolly-libs"

id 'maven-publish'
id "dolly-libs-publish"
}

sonarqube {
Expand All @@ -25,28 +24,6 @@ dependencies {
implementation 'no.nav.tjenestespesifikasjoner:nav-altinn-inntektsmelding:1.2019.08.16-13.46-35cbdfd492d4'
}

if (project.hasProperty("releaseVersion")) {
version = releaseVersion
}

publishing {
repositories {
maven {
name = "github"
url = uri('https://maven.pkg.github.com/navikt/testnorge')
credentials(PasswordCredentials) {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
25 changes: 1 addition & 24 deletions libs/data-transfer-search-objects/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id "dolly-libs"

id 'maven-publish'
id "dolly-libs-publish"
}

sonarqube {
Expand All @@ -25,28 +24,6 @@ dependencies {
implementation 'org.springframework.data:spring-data-elasticsearch'
}

if (project.hasProperty("releaseVersion")) {
version = releaseVersion
}

publishing {
repositories {
maven {
name = "github"
url = uri('https://maven.pkg.github.com/navikt/testnorge')
credentials(PasswordCredentials) {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
4 changes: 0 additions & 4 deletions libs/integration-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ sonarqube {
}
}

if (project.hasProperty("releaseVersion")) {
version = project.getProperties().get("releaseVersion")
}

dependencies {
implementation 'no.nav.testnav.libs:security-core'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
Expand Down
19 changes: 1 addition & 18 deletions libs/reactive-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id "dolly-libs"

id 'maven-publish'
id "dolly-libs-publish"
}

sonarqube {
Expand All @@ -11,25 +10,9 @@ sonarqube {
}
}

if (project.hasProperty("releaseVersion")) {
version = releaseVersion
}

publishing {
repositories {
maven {
name = "github"
url = uri('https://maven.pkg.github.com/navikt/testnorge')
credentials(PasswordCredentials) {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)

versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
Expand Down

0 comments on commit d13c197

Please sign in to comment.