diff --git a/build.gradle b/build.gradle index 7a75035..d322083 100644 --- a/build.gradle +++ b/build.gradle @@ -3,26 +3,42 @@ } repositories { - jcenter() + mavenCentral() - // since the Jasper dickheads keep creating custom builds of other projects - // we need to add a repository for their "special" versions - maven { - url 'http://jaspersoft.artifactoryonline.com/jaspersoft/jaspersoft-repo/' + // since the Jasper devs keep creating custom builds of other projects + // we need to add a repository for their "special" versions. + + // As at 30/7/2021 they can't even publish their own artifacts properly. + // The repos for their itext build are full of rubbish. Dickheads. + +// maven { +// url 'http://jaspersoft.artifactoryonline.com/jaspersoft/jaspersoft-repo/' +// allowInsecureProtocol = true +// } + +// maven { +// url 'https://www.ebi.ac.uk/intact/maven/nexus/content/repositories/public/' +// } + + // using my local libs until jaspersoft sorts their shit out + flatDir { + dirs 'libs' } - + } dependencies { implementation group: 'com.h2database', name: 'h2', version: '1.4.200' - implementation group: 'net.sourceforge.dynamicreports', name: 'dynamicreports-core', version: '5.0.0' - implementation group: 'org.simplejavamail', name: 'simple-java-mail', version: '4.2.3' - implementation group: 'com.formdev', name: 'flatlaf', version: '0.38' - implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1' + implementation group: 'net.sourceforge.dynamicreports', name: 'dynamicreports-core', version: '6.12.1' + implementation group: 'org.simplejavamail', name: 'simple-java-mail', version: '6.5.4' + implementation group: 'com.formdev', name: 'flatlaf', version: '1.2' + implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1' + implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32' + implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.5' } -task download(type: Copy) { - from sourceSets.main.runtimeClasspath +task copyLibs(type: Copy) { + from configurations.implementation into 'libs/' } @@ -38,7 +54,7 @@ } task createMissingSourceDirs { - group = "Source Directories" + group = "Directories" description = "Create all of the missing source directories for this project." doFirst { sourceSets.each { def sourceRoot -> @@ -53,7 +69,7 @@ } task deleteEmptySourceDirs { - group = "Source Directories" + group = "Directories" description = "Delete all empty source directories." doFirst { sourceSets.each { def sourceRoot -> @@ -68,6 +84,15 @@ } +task openBuildFolder { + group = "Directories" + description = "Open the project build directory in the system file manager." + doFirst { + println('Opening: ' + file(buildDir)) + java.awt.Desktop.getDesktop().open(file(buildDir)); + } +} + compileJava { sourceCompatibility = '1.8' targetCompatibility = '1.8'