2020-10-05 23:44:52 +02:00
|
|
|
plugins {
|
2024-09-10 22:36:53 +02:00
|
|
|
id 'java-library'
|
|
|
|
|
id 'jacoco'
|
2024-09-20 00:31:04 +02:00
|
|
|
|
|
|
|
|
id 'maven-publish'
|
|
|
|
|
id 'signing'
|
|
|
|
|
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
|
2020-10-05 23:44:52 +02:00
|
|
|
}
|
|
|
|
|
|
2024-09-11 16:35:03 +02:00
|
|
|
// Load custom properties
|
|
|
|
|
if (project.hasProperty('customProperties')) {
|
|
|
|
|
project.logger.info("Loading custom properties from: ${project.property('customProperties')}")
|
|
|
|
|
def props = new Properties()
|
|
|
|
|
file(project.property('customProperties')).withInputStream { props.load(it) }
|
|
|
|
|
|
|
|
|
|
props.each {key, value ->
|
|
|
|
|
project.logger.info("Updating property: ${key}")
|
|
|
|
|
project.ext[key] = value
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-19 23:06:38 +02:00
|
|
|
apply from: 'build_publish.gradle'
|
|
|
|
|
|
2020-10-05 23:44:52 +02:00
|
|
|
repositories {
|
|
|
|
|
mavenLocal()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2021-06-21 12:22:03 +02:00
|
|
|
implementation 'org.dom4j:dom4j:2.1.3'
|
2020-10-05 23:44:52 +02:00
|
|
|
|
2024-10-01 23:25:37 +02:00
|
|
|
implementation 'org.xerial:sqlite-jdbc:3.42.0.1'
|
2024-09-22 00:09:47 +02:00
|
|
|
compileOnly 'mysql:mysql-connector-java:8.0.28'
|
2021-08-05 16:39:16 +02:00
|
|
|
|
2020-10-05 23:44:52 +02:00
|
|
|
compileOnly 'javax.servlet:javax.servlet-api:3.1.0'
|
|
|
|
|
|
2021-08-05 16:39:16 +02:00
|
|
|
compileOnly 'org.shredzone.acme4j:acme4j-client:2.12'
|
|
|
|
|
compileOnly 'org.shredzone.acme4j:acme4j-utils:2.12'
|
|
|
|
|
|
|
|
|
|
compileOnly 'commons-fileupload:commons-fileupload:1.4'
|
2024-10-04 23:53:37 +02:00
|
|
|
compileOnly 'commons-io:commons-io:2.14.0'
|
2021-08-05 16:39:16 +02:00
|
|
|
|
2021-05-24 00:38:53 +02:00
|
|
|
testImplementation 'junit:junit:4.13.1'
|
2020-10-05 23:44:52 +02:00
|
|
|
testImplementation 'org.hamcrest:hamcrest-core:1.3'
|
|
|
|
|
testImplementation 'com.carrotsearch:junit-benchmarks:0.7.2'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group = 'se.koc'
|
2024-09-17 23:11:32 +02:00
|
|
|
version = project.hasProperty('releaseVersion') ? releaseVersion : '1.0.0-SNAPSHOT'
|
2020-11-10 15:45:11 +01:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
targetCompatibility = 1.8
|
2020-11-10 21:18:36 +01:00
|
|
|
compileJava.options.encoding = 'UTF-8'
|
2020-10-05 23:44:52 +02:00
|
|
|
|
|
|
|
|
java {
|
|
|
|
|
withSourcesJar()
|
|
|
|
|
withJavadocJar()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
|
publications {
|
|
|
|
|
maven(MavenPublication) {
|
|
|
|
|
from(components.java)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
main {
|
|
|
|
|
java {
|
|
|
|
|
srcDirs 'src'
|
|
|
|
|
}
|
|
|
|
|
resources {
|
|
|
|
|
srcDir 'src'
|
|
|
|
|
exclude '**/*.java'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
test {
|
|
|
|
|
java {
|
|
|
|
|
srcDirs 'test'
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-10 22:36:53 +02:00
|
|
|
}
|