Skip to content

Commit

Permalink
Publish fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vikulin committed Jun 24, 2024
1 parent 24b4806 commit 737dbcc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: bash ./gradlew build

- name: List build directory for debugging
run: ls -R .
run: ls -R ~/.m2

- name: Extract version from generated POM file
id: extract_version
Expand Down
15 changes: 6 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,13 @@ jar {
from sourceSets.main.allSource
}

// Configure publishing
publishing {
publications {
// Define a Maven publication named 'pomPublication'
pomPublication(MavenPublication) {
// Use the default POM generated by Gradle
from components.java
}
}
repositories {
mavenLocal()
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}

0 comments on commit 737dbcc

Please sign in to comment.