From c837d41947d136d6e06b54037b3d0056f5ce6fad Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Mon, 5 Oct 2020 23:44:52 +0200 Subject: [PATCH] Initial gradle file --- build.gradle | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 build.gradle diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..8fcbbd6 --- /dev/null +++ b/build.gradle @@ -0,0 +1,58 @@ +plugins { + id 'java' + id 'maven-publish' +} + +repositories { + mavenLocal() + mavenCentral() +} + +dependencies { + implementation 'commons-fileupload:commons-fileupload:1.4' + implementation 'commons-io:commons-io:2.5' + implementation 'dom4j:dom4j:1.6.1' + implementation 'org.xerial:sqlite-jdbc:3.8.11.2' + + compileOnly 'mysql:mysql-connector-java:8.0.16' + compileOnly 'javax.servlet:javax.servlet-api:3.1.0' + + testImplementation 'junit:junit:4.12' + testImplementation 'org.hamcrest:hamcrest-core:1.3' + testImplementation 'com.carrotsearch:junit-benchmarks:0.7.2' +} + +group = 'se.koc' +version = '1.0.0-SNAPSHOT' +description = 'zutil' +sourceCompatibility = '1.8' + +java { + withSourcesJar() + withJavadocJar() +} + +publishing { + publications { + maven(MavenPublication) { + from(components.java) + } + } +} + +sourceSets { + main { + java { + srcDirs 'src' + } + resources { + srcDir 'src' + exclude '**/*.java' + } + } + test { + java { + srcDirs 'test' + } + } +} \ No newline at end of file