33 lines
1.0 KiB
Groovy
33 lines
1.0 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version '2.2.2.RELEASE'
|
|
id 'java'
|
|
}
|
|
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
sourceCompatibility = '11'
|
|
|
|
task fullJar(type: Jar) {
|
|
manifest {
|
|
attributes 'Implementation-Title': 'WebQuizEngine Jar File',
|
|
'Main-Class': 'org.hyperskill.webquiz.engine.WebQuizEngine'
|
|
}
|
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
with jar
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
sourceSets.main.resources.srcDirs = ["src/main/resources"]
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter'
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
runtimeOnly 'com.h2database:h2'
|
|
compile("org.springframework.boot:spring-boot-starter-web")
|
|
} |