Skip to content

Commit 07ab42a

Browse files
committed
chore(gradle): add repo deploy
1 parent 52939f0 commit 07ab42a

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

build.gradle

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,22 @@ subprojects {
2929
maven {
3030
name = "envyware"
3131
url = uri("https://maven.envyware.co.uk/releases")
32-
credentials(PasswordCredentials::class)
32+
credentials(PasswordCredentials)
3333
authentication {
34-
create("basic")
34+
basic(BasicAuthentication)
3535
}
3636
}
3737
}
3838
publications {
39-
create("maven") {
39+
maven(MavenPublication) {
4040
groupId = "com.envyful.api"
4141
artifactId = "api"
4242
version = "1.0.0"
43-
from(components["java"])
43+
from components.java
4444
}
4545
}
4646
}
4747

48-
// task notifyDiscordChannel(type: de.dosmike.sponge.pluginpublisher.gradle.NotifyDiscordTask) {
49-
// webHookUrl.set("")
50-
// messageHeader.set("API BUILD ${System.getenv("VERSION")}") //is optional
51-
// messageBody.set('This is published in channel 1')
52-
// }
53-
5448
repositories {
5549
mavenCentral()
5650
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ org.gradle.daemon=false
22
#org.gradle.parallel=true
33
org.gradle.configureondemand=true
44
org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
5-
username={secrets.MAVEN_NAME}
6-
password={secrets.MAVEN_TOKEN}
5+
envywareUsername={token}
6+
envywarePassword={secret}

0 commit comments

Comments
 (0)