diff --git a/.gitignore b/.gitignore index 514dd716..6019df58 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/build.gradle b/build.gradle index 048703b1..c1e57588 100644 --- a/build.gradle +++ b/build.gradle @@ -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 + } + } } }