Skip to content

Commit

Permalink
chore(gradle): add repo deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
danorris709 committed Jan 6, 2023
1 parent 52939f0 commit 07ab42a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 4 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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}
envywareUsername={token}
envywarePassword={secret}

0 comments on commit 07ab42a

Please sign in to comment.