reform dir structure
This commit is contained in:
46
app/build.gradle.kts
Normal file
46
app/build.gradle.kts
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
plugins {
|
||||||
|
id("elex-springboot")
|
||||||
|
id("org.springframework.boot") version "2.4.2"
|
||||||
|
id("io.spring.dependency-management") version "1.0.11.RELEASE"
|
||||||
|
id("org.asciidoctor.convert") version "1.5.8"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "com.elex-project"
|
||||||
|
version = "0.0.1-SNAPSHOT"
|
||||||
|
description = ""
|
||||||
|
|
||||||
|
ext {
|
||||||
|
set("snippetsDir", file("build/generated-snippets"))
|
||||||
|
}
|
||||||
|
springBoot{
|
||||||
|
buildInfo()
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.test {
|
||||||
|
outputs.dir(ext.get("snippetsDir")!!)
|
||||||
|
}
|
||||||
|
tasks.asciidoctor {
|
||||||
|
inputs.dir(ext.get("snippetsDir")!!)
|
||||||
|
setDependsOn(mutableListOf("test"))
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
//implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
||||||
|
implementation("org.springframework.boot:spring-boot-starter-mustache")
|
||||||
|
//implementation("org.springframework.boot:spring-boot-starter-security")
|
||||||
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
||||||
|
|
||||||
|
//implementation ("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
|
||||||
|
//implementation ("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
|
||||||
|
|
||||||
|
compileOnly("org.projectlombok:lombok")
|
||||||
|
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
||||||
|
//runtimeOnly("org.mariadb.jdbc:mariadb-java-client")
|
||||||
|
|
||||||
|
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
|
||||||
|
annotationProcessor("org.projectlombok:lombok")
|
||||||
|
|
||||||
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||||
|
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
|
||||||
|
//testImplementation("org.springframework.security:spring-security-test")
|
||||||
|
}
|
||||||
@@ -1,98 +1,4 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("org.springframework.boot") version "2.4.2"
|
|
||||||
id("io.spring.dependency-management") version "1.0.11.RELEASE"
|
|
||||||
id("org.asciidoctor.convert") version "1.5.8"
|
|
||||||
java
|
|
||||||
id("com.github.ben-manes.versions") version "0.36.0"
|
id("com.github.ben-manes.versions") version "0.36.0"
|
||||||
}
|
|
||||||
|
|
||||||
group = "com.elex-project"
|
|
||||||
version = "0.0.1-SNAPSHOT"
|
|
||||||
description = ""
|
|
||||||
|
|
||||||
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"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ext {
|
|
||||||
set("snippetsDir", file("build/generated-snippets"))
|
|
||||||
}
|
|
||||||
springBoot{
|
|
||||||
buildInfo()
|
|
||||||
}
|
|
||||||
tasks.compileJava {
|
|
||||||
options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.compileTestJava {
|
|
||||||
options.encoding = "UTF-8"
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
outputs.dir(ext.get("snippetsDir")!!)
|
|
||||||
}
|
|
||||||
tasks.asciidoctor {
|
|
||||||
inputs.dir(ext.get("snippetsDir")!!)
|
|
||||||
setDependsOn(mutableListOf("test"))
|
|
||||||
}
|
|
||||||
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")
|
|
||||||
|
|
||||||
//implementation("org.springframework.boot:spring-boot-starter-data-jpa")
|
|
||||||
implementation("org.springframework.boot:spring-boot-starter-mustache")
|
|
||||||
//implementation("org.springframework.boot:spring-boot-starter-security")
|
|
||||||
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
||||||
|
|
||||||
//implementation ("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")
|
|
||||||
//implementation ("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
|
|
||||||
|
|
||||||
compileOnly("org.projectlombok:lombok")
|
|
||||||
developmentOnly("org.springframework.boot:spring-boot-devtools")
|
|
||||||
//runtimeOnly("org.mariadb.jdbc:mariadb-java-client")
|
|
||||||
|
|
||||||
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
|
|
||||||
annotationProcessor("org.projectlombok:lombok")
|
|
||||||
|
|
||||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
||||||
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
|
|
||||||
//testImplementation("org.springframework.security:spring-security-test")
|
|
||||||
}
|
|
||||||
|
|||||||
13
buildSrc/build.gradle.kts
Normal file
13
buildSrc/build.gradle.kts
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* Project Freesia
|
||||||
|
*
|
||||||
|
* Copyright (c) 2021. Elex. All Rights Reserved.
|
||||||
|
* https://www.elex-project.com/
|
||||||
|
*/
|
||||||
|
|
||||||
|
plugins{
|
||||||
|
`kotlin-dsl`
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
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")
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1 +1,2 @@
|
|||||||
rootProject.name = "freesia"
|
rootProject.name = "freesia"
|
||||||
|
include("app")
|
||||||
|
|||||||
Reference in New Issue
Block a user