Skip to content

Commit

Permalink
Fix broken gradle build
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Manuel Leflet Estrada <jleflete@redhat.com>
  • Loading branch information
jmle committed Aug 30, 2024
1 parent 7ccee82 commit 1325b2c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion demo-output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@
incidents:
- uri: file:///examples/gradle-multi-project-example/build.gradle
message: dependency junit.junit with 4.12 is bad and you should feel bad for using it
codeSnip: " 1 apply plugin: 'idea'\n 2 \n 3 ext {\n 4 log4jVersion = '2.9.1'\n 5 }\n 6 \n 7 buildscript {\n 8 repositories {\n 9 jcenter()\n10 }\n11 dependencies {"
codeSnip: " 1 apply plugin: 'idea'\n 2 \n 3 ext {\n 4 log4jVersion = '2.9.1'\n 5 }\n 6 \n 7 buildscript {\n 8 repositories {\n 9 jcenter()\n10 mavenCentral()\n11 }"
lineNumber: 0
variables:
name: junit.junit
Expand Down Expand Up @@ -1048,6 +1048,10 @@
message: ""
- uri: file:///examples/gradle-multi-project-example/gradle/wrapper/gradle-wrapper.jar
message: ""
- uri: file:///examples/gradle-multi-project-example/template-core/build/libs/template-core.jar
message: ""
- uri: file:///examples/gradle-multi-project-example/template-server/build/libs/template-server.jar
message: ""
- uri: file:///examples/inclusion-tests/pom.xml
message: ""
- uri: file:///examples/java-project/pom.xml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ ext {
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
// dependencies {
// classpath 'com.gradleup.shadow:shadow-gradle-plugin:2.0.3'
// }
}

allprojects {
Expand All @@ -24,7 +25,7 @@ apply from: file('gradle/check.gradle')
apply from: file('gradle/heroku/clean.gradle')

subprojects {
apply plugin: 'com.github.johnrengelman.shadow'
// apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'

group = "io.jeffchao.${rootProject.name}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
task stage(dependsOn: ['clean', 'shadowJar'])
task stage(dependsOn: ['clean'])

task copyToLib(type: Copy) {
from "$buildDir/libs"
into "$rootProject.buildDir/libs"
}
copyToLib.dependsOn(shadowJar)
stage.dependsOn(copyToLib)

0 comments on commit 1325b2c

Please sign in to comment.