GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
COMP101_JDBC_demo
Browse code
Added shadow plugin to create self-contained JAR
master
1 parent
5cf8c4c
commit
667a72ab68ab3e77b3cff1f7fa1dbe7f3e976df1
Nigel Stanger
authored
on 17 Apr 2020
Patch
Showing
1 changed file
build.gradle
Ignore Space
Show notes
View
build.gradle
plugins { id 'java' id 'application' id 'com.github.johnrengelman.shadow' version '5.2.0' } repositories { jcenter() } dependencies { def oracleVer = '12.2.0.1' compile group: 'com.oracle.database.jdbc', name: 'ojdbc8', version: oracleVer } run { standardInput = System.in } task createMissingSourceDirs { group = "Source Directories" description = "Create all of the missing source directories for this project." doFirst { sourceSets.each { def sourceRoot -> sourceRoot.allSource.srcDirTrees.each { def sourceDir -> if(!sourceDir.dir.exists()) { println "Creating ${sourceDir}" mkdir sourceDir.dir } } } } } task deleteEmptySourceDirs { group = "Source Directories" description = "Delete all empty source directories." doFirst { sourceSets.each { def sourceRoot -> sourceRoot.allSource.srcDirTrees.each { def sourceDir -> if(sourceDir.dir.exists() && sourceDir.dir.isDirectory() && sourceDir.dir.list().length == 0) { println "Removing empty ${sourceDir}" sourceDir.dir.delete() } } } } } mainClassName = 'ui.WaterQualityReporter'
plugins { id 'java' id 'application' } repositories { jcenter() } dependencies { def oracleVer = '12.2.0.1' compile group: 'com.oracle.database.jdbc', name: 'ojdbc8', version: oracleVer } run { standardInput = System.in } task createMissingSourceDirs { group = "Source Directories" description = "Create all of the missing source directories for this project." doFirst { sourceSets.each { def sourceRoot -> sourceRoot.allSource.srcDirTrees.each { def sourceDir -> if(!sourceDir.dir.exists()) { println "Creating ${sourceDir}" mkdir sourceDir.dir } } } } } task deleteEmptySourceDirs { group = "Source Directories" description = "Delete all empty source directories." doFirst { sourceSets.each { def sourceRoot -> sourceRoot.allSource.srcDirTrees.each { def sourceDir -> if(sourceDir.dir.exists() && sourceDir.dir.isDirectory() && sourceDir.dir.list().length == 0) { println "Removing empty ${sourceDir}" sourceDir.dir.delete() } } } } } mainClassName = 'ui.WaterQualityReporter'
Show line notes below