Skip to content

Commit

Permalink
Declare our artifact's rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
LexManos committed Mar 18, 2024
1 parent e41b2d5 commit de28766
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
/test_results.html
/artifacts/
/test_artifacts.zip
/src/main/resources/META-INF/MANIFEST.MF
14 changes: 12 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ plugins {
id 'java-library'
id 'maven-publish'
id 'eclipse'
id 'org.cadixdev.licenser' version '0.6.1'
id 'org.gradlex.extra-java-module-info' version '1.4.2'
id 'net.minecraftforge.gradleutils' version '[2.3.0,2.4)'
id 'net.minecraftforge.licenser' version '1.0.1'
}

group = 'net.minecraftforge'
Expand All @@ -29,6 +29,13 @@ dependencies {
implementation(libs.unsafe)
}

configurations.all {
outgoing {
capability("net.minecraftforge:securemodules:$version")
capability("cpw.mods:securejarhandler:$version")
}
}

extraJavaModuleInfo {
failOnMissingModuleInfo = false
}
Expand Down Expand Up @@ -58,7 +65,7 @@ tasks.register('writeManifest') {

eclipse {
synchronizationTasks writeManifest
autoBuildTasks writeManifest
autoBuildTasks writeManifest
}

license {
Expand All @@ -67,6 +74,9 @@ license {

publishing {
publications.register('mavenJava', MavenPublication) {
configurations.all {
suppressPomMetadataWarningsFor(it.name)
}
from components.java
artifactId = 'securemodules'
pom {
Expand Down

0 comments on commit de28766

Please sign in to comment.