add publishing to github packages
This commit is contained in:
parent
857ce637a7
commit
e0fe404832
19
build.gradle
19
build.gradle
@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'idea'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
group 'me.bvn13'
|
||||
@ -34,4 +35,22 @@ test {
|
||||
|
||||
tasks.withType(Test).configureEach {
|
||||
maxParallelForks = 1
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = "GitHubPackages"
|
||||
url = uri("https://maven.pkg.github.com/bvn13/sewy")
|
||||
credentials {
|
||||
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
|
||||
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
publications {
|
||||
gpr(MavenPublication) {
|
||||
from(components.java)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user