Skip to content

Commit 2fdeaa8

Browse files
committed
try
1 parent d7ff3d6 commit 2fdeaa8

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

build.gradle

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -147,36 +147,38 @@ subprojects {
147147
rootProject.dependencies.compile project
148148
}
149149
}
150+
150151
publishing {
151-
publications {
152-
mavenJava(MavenPublication) {
153-
groupId = rootProject.group
154-
artifactId = "JavaBotBlockAPI"
155-
version = rootProject.version
156-
157-
from components.java
158-
artifact javadocJar
159-
artifact sourcesJar
152+
publications {
153+
mavenJava(MavenPublication) {
154+
groupId = rootProject.group
155+
artifactId = moduleName
156+
version = rootProject.version
157+
158+
from components.java
159+
artifact javadocJar
160+
artifact sourceJar
161+
}
160162
}
161-
}
162-
repositories {
163-
maven {
164-
url = "https://repo.codemc.io/repository/maven-releases/"
165-
166-
def mavenUsername = System.getenv("ORG_GRADLE_PROJECT_mavenUsername") ? System.getenv("ORG_GRADLE_PROJECT_mavenUsername") :
167-
System.getProperty("ORG_GRADLE_PROJECT_mavenUsername") ? System.getProperty("ORG_GRADLE_PROJECT_mavenUsername") : null
168-
def mavenPassword = System.getenv("ORG_GRADLE_PROJECT_mavenPassword") ? System.getenv("ORG_GRADLE_PROJECT_mavenPassword") :
169-
System.getProperty("ORG_GRADLE_PROJECT_mavenPassword") ? System.getProperty("ORG_GRADLE_PROJECT_mavenPassword") : null
170-
171-
if(mavenUsername != null && mavenPassword != null) {
172-
credentials {
173-
username = mavenUsername
174-
password = mavenPassword
163+
repositories {
164+
maven {
165+
url = "https://repo.codemc.io/repository/maven-releases/"
166+
167+
def mavenUsername = System.getenv("ORG_GRADLE_PROJECT_mavenUsername") ? System.getenv("ORG_GRADLE_PROJECT_mavenUsername") :
168+
System.getProperty("ORG_GRADLE_PROJECT_mavenUsername") ? System.getProperty("ORG_GRADLE_PROJECT_mavenUsername") : null
169+
def mavenPassword = System.getenv("ORG_GRADLE_PROJECT_mavenPassword") ? System.getenv("ORG_GRADLE_PROJECT_mavenPassword") :
170+
System.getProperty("ORG_GRADLE_PROJECT_mavenPassword") ? System.getProperty("ORG_GRADLE_PROJECT_mavenPassword") : null
171+
172+
if(mavenUsername != null && mavenPassword != null) {
173+
credentials {
174+
username = mavenUsername
175+
password = mavenPassword
176+
}
175177
}
176178
}
177179
}
178180
}
179-
}
181+
180182
}
181183

182184
configurations {

0 commit comments

Comments
 (0)