Skip to content

Commit

Permalink
add github package repo
Browse files Browse the repository at this point in the history
  • Loading branch information
adonese committed Oct 24, 2022
1 parent c10fb65 commit e0e5907
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

22 changes: 21 additions & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ buildscript {

apply plugin: 'kotlin'
apply plugin: 'java-library'

apply plugin: 'maven-publish'

repositories {
// Use JCenter for resolving dependencies.
Expand Down Expand Up @@ -61,3 +61,23 @@ test {
useJUnitPlatform()
}

// Top-level build file where you can add configuration options common to all sub-projects/modules.


publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/tutipay/java-sdk")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}

0 comments on commit e0e5907

Please sign in to comment.