Skip to content

Commit

Permalink
fixing group name at gradle.properties; adjusting some publish config…
Browse files Browse the repository at this point in the history
…uration at build.gradle
  • Loading branch information
Káio Simonassi committed Nov 27, 2024
1 parent 6f06946 commit 0d3e1a7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
29 changes: 28 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dependencies {
include "com.enonic.lib:lib-thymeleaf:2.1.0"
include 'com.enonic.lib:lib-http-client:3.2.2'
include "com.enonic.lib:lib-cron:1.1.2"

include "org.json:json:20200518"
}

Expand All @@ -38,4 +37,32 @@ repositories {
mavenLocal()
mavenCentral()
xp.enonicRepo()
maven {
url = uri("https://maven.pkg.github.com/99x/imageshop-xp")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") // fill properly the value at gradle.properties
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") // fill properly the value at gradle.properties
}
}
}

publishing {
publications {
gpr(MavenPublication) {
from components.java
groupId = project.findProperty("group") // fill properly the value at gradle.properties
artifactId = project.findProperty("projectName") // fill properly the value at gradle.properties
version = project.findProperty("version") // fill properly the value at gradle.properties
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/99x/imageshop-xp")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") // fill properly the value at gradle.properties
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") // fill properly the value at gradle.properties
}
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ vendorUrl = https://99x.io
xpVersion = 7.9.2

# Settings for publishing to a Maven repo
group = io.99x.imageshop
group = io.99x

0 comments on commit 0d3e1a7

Please sign in to comment.