@@ -17,7 +17,7 @@ plugins {
1717 alias libs. plugins. shadow
1818}
1919
20- final projectDisplayName = ' Forge Gradle Utilities'
20+ gradleutils . displayName = ' Forge Gradle Utilities'
2121description = ' Small collection of utilities for standardizing MinecraftForge gradle scripts'
2222base. archivesName = ' gradleutils'
2323group = ' net.minecraftforge'
@@ -48,7 +48,7 @@ configurations {
4848 // This was added in Gradle 7, gives consumers useful errors if they are on an old version
4949 def applyGradleVersionAttribute = { Configuration configuration ->
5050 configuration. attributes {
51- attribute(GradlePluginApiVersion . GRADLE_PLUGIN_API_VERSION_ATTRIBUTE , objects. named(GradlePluginApiVersion , libs. versions. gradle. asProvider() . get( )))
51+ attribute(GradlePluginApiVersion . GRADLE_PLUGIN_API_VERSION_ATTRIBUTE , objects. named(GradlePluginApiVersion , gradleutils . unpack( libs. versions. gradle)))
5252 }
5353 }
5454
@@ -73,15 +73,6 @@ dependencies {
7373 implementation libs. yaml
7474}
7575
76- // Removes local Gradle API from compileOnly. This is a workaround for bugged plugins.
77- // Publish Plugin: https://github.com/gradle/plugin-portal-requests/issues/260
78- // Shadow: https://github.com/GradleUp/shadow/pull/1422
79- afterEvaluate { project ->
80- project. configurations. named(JavaPlugin . COMPILE_ONLY_CONFIGURATION_NAME ) { compileOnly ->
81- compileOnly. dependencies. remove(project. dependencies. gradleApi())
82- }
83- }
84-
8576license {
8677 header = rootProject. file(' LICENSE-header.txt' )
8778 newLine = false
@@ -98,17 +89,8 @@ tasks.named('shadowJar', ShadowJar) {
9889 relocationPrefix = ' net.minecraftforge.gradleutils.shadow'
9990}
10091
101- tasks. withType(GroovyCompile ). configureEach {
102- groovyOptions. optimizationOptions. indy = true
103- }
104-
10592tasks. withType(Javadoc ). configureEach {
10693 javadocTool = javaToolchains. javadocToolFor { languageVersion = JavaLanguageVersion . of(24 ) }
107-
108- options { StandardJavadocDocletOptions options ->
109- options. windowTitle = projectDisplayName + project. version
110- options. tags ' apiNote:a:API Note:' , ' implNote:a:Implementation Note:' , ' implSpec:a:Implementation Requirements:'
111- }
11294}
11395
11496changelog {
@@ -122,7 +104,7 @@ gradlePlugin {
122104 plugins. register(' gradleutils' ) {
123105 id = ' net.minecraftforge.gradleutils'
124106 implementationClass = ' net.minecraftforge.gradleutils.GradleUtilsPlugin'
125- displayName = projectDisplayName
107+ displayName = gradleutils . displayName
126108 description = project. description
127109 tags = [' minecraftforge' ]
128110 }
@@ -138,7 +120,7 @@ publishing {
138120 gradleutils. promote(it)
139121
140122 pom { pom ->
141- name = projectDisplayName
123+ name = gradleutils . displayName
142124 description = project. description
143125
144126 gradleutils. pom. addRemoteDetails(pom)
@@ -155,6 +137,3 @@ publishing {
155137 }
156138 }
157139}
158-
159- idea. module { downloadSources = downloadJavadoc = true }
160- eclipse. classpath { downloadSources = downloadJavadoc = true }
0 commit comments