We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ee2b60 commit 0ca76b2Copy full SHA for 0ca76b2
build.gradle
@@ -130,6 +130,20 @@ publishing {
130
maven {
131
url "file://${project.projectDir}/repo"
132
}
133
+ var mavenUsername = project.findProperty("harleyOConnorMavenUsername")?.toString() ?: System.getenv("MAVEN_USERNAME")
134
+ var mavenPassword = project.findProperty("harleyOConnorMavenPassword")?.toString() ?: System.getenv("MAVEN_PASSWORD")
135
+ if (mavenUsername == null || mavenPassword == null) {
136
+ logger.log(LogLevel.WARN,"Credentials for maven not detected; it will be disabled.")
137
+ return
138
+ }
139
+ maven {
140
+ name = "HarleyOConnor"
141
+ url = "https://harleyoconnor.com/maven"
142
+ credentials {
143
+ username = mavenUsername
144
+ password = mavenPassword
145
146
147
148
149
0 commit comments