diff --git a/build.gradle b/build.gradle index b6a411c8..5be4d1c3 100644 --- a/build.gradle +++ b/build.gradle @@ -29,28 +29,22 @@ subprojects { maven { name = "envyware" url = uri("https://maven.envyware.co.uk/releases") - credentials(PasswordCredentials::class) + credentials(PasswordCredentials) authentication { - create("basic") + basic(BasicAuthentication) } } } publications { - create("maven") { + maven(MavenPublication) { groupId = "com.envyful.api" artifactId = "api" version = "1.0.0" - from(components["java"]) + from components.java } } } -// task notifyDiscordChannel(type: de.dosmike.sponge.pluginpublisher.gradle.NotifyDiscordTask) { -// webHookUrl.set("") -// messageHeader.set("API BUILD ${System.getenv("VERSION")}") //is optional -// messageBody.set('This is published in channel 1') -// } - repositories { mavenCentral() maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } diff --git a/gradle.properties b/gradle.properties index 40993ccf..e612e843 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,5 +2,5 @@ org.gradle.daemon=false #org.gradle.parallel=true org.gradle.configureondemand=true org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -username={secrets.MAVEN_NAME} -password={secrets.MAVEN_TOKEN} \ No newline at end of file +envywareUsername={token} +envywarePassword={secret} \ No newline at end of file