reform dir structure
This commit is contained in:
67
buildSrc/src/main/kotlin/elex-base.gradle.kts
Normal file
67
buildSrc/src/main/kotlin/elex-base.gradle.kts
Normal file
@@ -0,0 +1,67 @@
|
||||
import org.gradle.kotlin.dsl.repositories
|
||||
|
||||
/*
|
||||
* Project Freesia
|
||||
*
|
||||
* Copyright (c) 2021. Elex. All Rights Reserved.
|
||||
* https://www.elex-project.com/
|
||||
*/
|
||||
|
||||
plugins{
|
||||
java
|
||||
}
|
||||
java {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
sourceCompatibility = org.gradle.api.JavaVersion.VERSION_11
|
||||
targetCompatibility = org.gradle.api.JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
configurations {
|
||||
compileOnly {
|
||||
extendsFrom(annotationProcessor.get())
|
||||
}
|
||||
testCompileOnly {
|
||||
extendsFrom(testAnnotationProcessor.get())
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
url = uri("https://repository.elex-project.com/repository/maven")
|
||||
}
|
||||
}
|
||||
tasks.jar {
|
||||
manifest {
|
||||
attributes(
|
||||
mapOf(
|
||||
"Implementation-Title" to project.name,
|
||||
"Implementation-Version" to project.version,
|
||||
"Implementation-Vendor" to "ELEX co.,pte.",
|
||||
"Automatic-Module-Name" to "com.elex_project.freesia"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
tasks.compileJava {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
tasks.compileTestJava {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
tasks.javadoc {
|
||||
if (JavaVersion.current().isJava9Compatible) {
|
||||
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
|
||||
}
|
||||
(options as StandardJavadocDocletOptions).encoding = "UTF-8"
|
||||
(options as StandardJavadocDocletOptions).charSet = "UTF-8"
|
||||
(options as StandardJavadocDocletOptions).docEncoding = "UTF-8"
|
||||
|
||||
}
|
||||
dependencies {
|
||||
implementation("org.slf4j:slf4j-api:1.7.30")
|
||||
implementation("org.jetbrains:annotations:20.1.0")
|
||||
}
|
||||
4
buildSrc/src/main/kotlin/elex-springboot.gradle.kts
Normal file
4
buildSrc/src/main/kotlin/elex-springboot.gradle.kts
Normal file
@@ -0,0 +1,4 @@
|
||||
plugins{
|
||||
id("elex-base")
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user