You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.4 KiB
71 lines
2.4 KiB
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.5.RELEASE")
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
apply plugin: 'application'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
mainClassName = 'com.dsideal.iot.Application'
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
|
compile("org.springframework.boot:spring-boot-starter-web")
|
|
compile('org.springframework.boot:spring-boot-devtools')
|
|
compile("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
|
|
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
|
|
compile("org.springframework.boot:spring-boot-starter-data-jpa")
|
|
compile("org.xerial:sqlite-jdbc:3.20.0")
|
|
compile("org.springframework.boot:spring-boot-starter-security")
|
|
compile("org.springframework.boot:spring-boot-starter-websocket")
|
|
compile("org.thymeleaf.extras:thymeleaf-extras-springsecurity4")
|
|
compile("org.webjars:webjars-locator-core")
|
|
compile("org.webjars:sockjs-client:1.0.2")
|
|
compile("org.webjars:stomp-websocket:2.3.3")
|
|
compile("com.alibaba:fastjson:1.2.47")
|
|
compile("io.springfox:springfox-swagger2:2.8.0")
|
|
compile("io.springfox:springfox-swagger-ui:2.8.0")
|
|
compile("io.springfox:springfox-bean-validators:2.8.0")
|
|
compile("org.apache.httpcomponents:httpclient:4.5.5") {
|
|
exclude(module: 'commons-logging')
|
|
}
|
|
compile("org.apache.commons:commons-io:1.3.2")
|
|
compile("org.apache.httpcomponents:httpcore:4.4.9")
|
|
compile("commons-logging:commons-logging:1.2")
|
|
testCompile("org.easymock:easymock:3.6")
|
|
}
|
|
|
|
task copy(type: Copy) {
|
|
from('src/main/resources/application.properties')
|
|
into '../../../../publish/dist/linux-arm64/publish/apps/NJWLService'
|
|
from('src/main/resources/start.bat')
|
|
into '../../../../publish/dist/linux-arm64/publish/apps/NJWLService'
|
|
from('src/main/resources/start.sh')
|
|
into '../../../../publish/dist/linux-arm64/publish/apps/NJWLService'
|
|
from('build/libs') {
|
|
include '*.*'
|
|
}
|
|
into '../../../../publish/dist/linux-arm64/publish/apps/NJWLService'
|
|
}
|
|
|
|
build.dependsOn(copy)
|