Skip to content

Commit

Permalink
🌟 更新 Maven 设置
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Sep 10, 2024
1 parent 540e44e commit fdf43bb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,16 @@ publishing {
}
}
repositories {
maven {
url "file://${project.projectDir}/repo"
// Add repositories to publish to here.
def MAVEN_URL = System.getenv("MAVEN_URL")
if (MAVEN_URL != null) {
maven {
url MAVEN_URL
credentials {
username System.getenv("MAVEN_USERNAME")
password System.getenv("MAVEN_PASSWORD")
}
}
}
}
}
Expand Down

0 comments on commit fdf43bb

Please sign in to comment.