Configure publishing to repo
This commit is contained in:
parent
0c85258974
commit
f5e34506b2
|
|
@ -41,7 +41,7 @@ ext.addTaskToCopyAllOutputs = { task ->
|
||||||
}
|
}
|
||||||
|
|
||||||
def artifactGroupId = 'org.fairportrobotics.poe'
|
def artifactGroupId = 'org.fairportrobotics.poe'
|
||||||
def baseArtifactId = 'PotentialOctoEurekaLibrary'
|
def baseArtifactId = 'potential-octo-eureka-library'
|
||||||
def zipBaseName = "_GROUP_org_fairportrobotics_poe_ID_${baseArtifactId}-java_CLS"
|
def zipBaseName = "_GROUP_org_fairportrobotics_poe_ID_${baseArtifactId}-java_CLS"
|
||||||
def javaBaseName = "_GROUP_org_fairportrobotics_poe_ID_${baseArtifactId}-java_CLS"
|
def javaBaseName = "_GROUP_org_fairportrobotics_poe_ID_${baseArtifactId}-java_CLS"
|
||||||
|
|
||||||
|
|
@ -98,8 +98,12 @@ def releasesRepoUrl = "$buildDir/repos/releases"
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
|
name = "GitHubPackages"
|
||||||
url = releasesRepoUrl
|
url = uri("https://maven.pkg.github.com/FairportRobotics/potential-octo-eureka")
|
||||||
|
credentials {
|
||||||
|
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
|
||||||
|
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -113,7 +117,6 @@ tasks.matching {it != cleanReleaseRepo}.all {it.dependsOn cleanReleaseRepo}
|
||||||
model {
|
model {
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
|
|
||||||
java(MavenPublication) {
|
java(MavenPublication) {
|
||||||
artifact jar
|
artifact jar
|
||||||
artifact sourcesJar
|
artifact sourcesJar
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue