Skip to content

Commit

Permalink
Get rid of applying Shadow plugin for itself
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Sep 11, 2024
1 parent 54d4c95 commit 464fff1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 74 deletions.
12 changes: 0 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
id 'groovy'
id 'project-report'
Expand All @@ -12,8 +9,6 @@ plugins {
id 'com.vanniktech.maven.publish' version "0.29.0"
}

apply plugin: ShadowPlugin

apply from: file('gradle/docs.gradle')
apply from: file('gradle/publish.gradle')
apply from: file('gradle/vuepress.gradle')
Expand Down Expand Up @@ -55,13 +50,6 @@ tasks.withType(Test).configureEach {
)
}

tasks.named('shadowJar', ShadowJar) {
from rootProject.file('LICENSE')
from rootProject.file('NOTICE')
enableRelocation true
archiveClassifier = ''
}

tasks.named('ideaModule') {
notCompatibleWithConfigurationCache("https://github.com/gradle/gradle/issues/13480")
}
56 changes: 0 additions & 56 deletions buildSrc/build.gradle

This file was deleted.

1 change: 0 additions & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
dependencies {
compileOnly localGroovy()
shadow 'org.codehaus.groovy:groovy-backports-compat23:3.0.8'

implementation 'org.jdom:jdom2:2.0.6.1'
implementation 'org.ow2.asm:asm:9.7'
Expand Down
5 changes: 0 additions & 5 deletions gradle/docs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ def javaApiUrl = 'https://docs.oracle.com/javase/17/docs/api'
def groovyApiUrl = "https://docs.groovy-lang.org/2.4.7/html/gapi/"

tasks.withType(Javadoc).configureEach {
classpath += project.configurations.shadow
options.links(javaApiUrl, groovyApiUrl)
if (JavaVersion.current().java8Compatible) {
options.addStringOption('Xdoclint:none', '-quiet')
Expand All @@ -14,8 +13,4 @@ java {
withSourcesJar()
}

tasks.named('groovydoc') {
classpath += project.configurations.shadow
}

tasks.named('build') { dependsOn javadocJar, sourcesJar }

0 comments on commit 464fff1

Please sign in to comment.