Skip to content

Instantly share code, notes, and snippets.

@sebersole
Created February 9, 2018 17:02
Show Gist options
  • Select an option

  • Save sebersole/3daf1055abc9f5ffa94b3f243e014aec to your computer and use it in GitHub Desktop.

Select an option

Save sebersole/3daf1055abc9f5ffa94b3f243e014aec to your computer and use it in GitHub Desktop.
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
configurations {
wildflyModules
}
dependencies {
wildflyModules 'org.hibernate:hibernate-orm-modules:5.3.0-SNAPSHOT:wildfly-11-dist@zip'
compile 'org.hibernate:hibernate-core:5.3.0-SNAPSHOT'
}
task showDepInfo {
println 'MODULES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
project.configurations.wildflyModules.dependencies.forEach( {Dependency dependency ->
println 'dependency : ' + dependency.name
} )
println 'Number of files : ' + project.configurations.wildflyModules.resolvedConfiguration.files.size( )
project.configurations.wildflyModules.resolvedConfiguration.files.forEach({ File file ->
println "wildflyModules dep file : ${file.absolutePath}"
})
println 'CORE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
project.configurations.compile.dependencies.forEach( {Dependency dependency ->
println 'CORE dependency : ' + dependency.name
} )
println 'Number of files : ' + project.configurations.compile.resolvedConfiguration.files.size( )
project.configurations.compile.resolvedConfiguration.files.forEach({ File file ->
println "CORE dep file : ${file.absolutePath}"
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment