Skip to content

Commit

Permalink
Update publish task
Browse files Browse the repository at this point in the history
  • Loading branch information
uTen2c committed Jan 2, 2024
1 parent b17263a commit df43d2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ tasks.register("cloneJcefAndPublish", GradleBuild) {
group = "publishing"
tasks = [
":cloneJcef",
":fabric:publish"
":common:publish",
":fabric:publish",
]
}
25 changes: 7 additions & 18 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,21 @@ repositories {
}
}

/*
Add the following to ~/.gradle/gradle.properties
systemProp.org.gradle.s3.endpoint=https://<the s3 endpoint>
MCEF_S3_PUBLISH_URL_SNAPSHOT=s3://<bucket>/repositories/snapshots
MCEF_S3_PUBLISH_URL_RELEASE=s3://<bucket>/repositories/releases
MCEF_S3_PUBLISH_ACCESS_KEY=<access key>
MCEF_S3_PUBLISH_SECRET_KEY=<secret key>
*/
publishing {
repositories {
maven {
url ((mcef_version.toString().endsWith("SNAPSHOT")) ? findProperty('MCEF_S3_PUBLISH_URL_SNAPSHOT') : findProperty('MCEF_S3_PUBLISH_URL_RELEASE'))
credentials(AwsCredentials) {
accessKey = findProperty('MCEF_S3_PUBLISH_ACCESS_KEY')
secretKey = findProperty('MCEF_S3_PUBLISH_SECRET_KEY')
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
groupId = 'com.cinemamod'
groupId = 'net.rainbootsmc'
artifactId = 'mcef'
version = mcef_version
}
}
def publishPath = System.getenv("PUBLISH_PATH")
repositories {
maven {
url publishPath
}
}
}

dependencies {
Expand Down

0 comments on commit df43d2d

Please sign in to comment.