Using GitHub packages

This commit is contained in:
Aleksey 2021-05-26 12:55:10 +03:00
parent 9299fd41eb
commit 7838ebed01
2 changed files with 45 additions and 35 deletions

62
.gitignore vendored
View file

@ -1,31 +1,31 @@
# gradle
.gradle/
build/
out/
classes/
# eclipse
*.launch
# idea
.idea/
*.iml
*.ipr
*.iws
# vscode
.settings/
.vscode/
bin/
.classpath
.project
# fabric
run/
output/
*.log
# gradle
.gradle/
build/
out/
classes/
# eclipse
*.launch
# idea
.idea/
*.iml
*.ipr
*.iws
# vscode
.settings/
.vscode/
bin/
.classpath
.project
# fabric
run/
output/
*.log

View file

@ -1,10 +1,10 @@
import java.util.function.BiConsumer
plugins {
id 'fabric-loom' version '0.7-SNAPSHOT'
id 'maven-publish'
}
apply plugin: 'maven'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
@ -99,10 +99,13 @@ artifacts {
archives javadocJar
}
def env = System.getenv()
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
gpr(MavenPublication) {
artifactId archivesBaseName
artifact(remapJar) {
builtBy remapJar
}
@ -114,6 +117,13 @@ publishing {
// select the repositories you want to publish to
repositories {
mavenLocal()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/paulevsgitch/bclib")
credentials {
username = env.GITHUB_USER
password = env.GITHUB_TOKEN
}
}
}
}