buildscript {
ext {
springBootVersion = '1.5.9.RELEASE'
}
repositories {
maven {
credentials {
username = nexusUsername
password = nexusPassword
}
url repositoriesUrl
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}java
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'mysql
group = 'com.inspur.iot'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8web
repositories {
maven {
url "http://repo.iop.inspur.com:8081/nexus/content/groups/public"
}
}redis
bootRun {
addResources = true
}
configurations.all {
exclude module: 'google-collections'
}
dependencies {
compile('org.springframework.boot:spring-boot-starter')
compile('org.springframework.boot:spring-boot-starter-web')
compile('io.springfox:springfox-swagger2:2.6.1')
compile('io.springfox:springfox-swagger-ui:2.6.1')
compile('org.springframework.boot:spring-boot-starter-jdbc')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('mysql:mysql-connector-java:5.1.21')
compile('org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.1')
compile('org.springframework.boot:spring-boot-starter-data-redis')
compile('commons-codec:commons-codec')
testCompile('org.springframework.boot:spring-boot-starter-test')
}spring
sourceEncoding=UTF-8
nexusUsername=deployment
nexusPassword=deployment123sql
nexusDeployUsername=deployment
nexusDeployPassword=deployment123app
group=com.inspur.cloudeclipse
version = 4.0.0-SNAPSHOTmaven
release=false
jarBaseName=cloud-service-factory
stage=devide
repoUrl=http://repo.iop.inspur.com:8081/nexus/content/groups/iop-dev
repositoriesUrlDev=http://repo.iop.inspur.com:8081/nexus/content/groups/iop-dev
repositoriesUploadSnapshotsUrlDev=http://repo.iop.inspur.com:8081/nexus/content/repositories/dev-snapshot
repositoriesUrlTest=http://repo.iop.inspur.com:8081/nexus/content/groups/iop-test
repositoriesUploadSnapshotsUrlTest=http://repo.iop.inspur.com:8081/nexus/content/repositories/test-snapshot
repositoriesUrl=http://repo.iop.inspur.com:8081/nexus/content/groups/public
repositoriesUploadReleasesUrl=http://repo.iop.inspur.com:8081/nexus/content/repositories/releases
repositoriesUploadSnapshotsUrl=http://repo.iop.inspur.com:8081/nexus/content/repositories/snapshots
sonar.host.url=http://sonar.iop.inspur.com:9000sonar.jdbc.url=jdbc:mysql://sonar.iop.inspur.com:3306/sonarsonar.jdbc.driverClassName=com.mysql.jdbc.Driversonar.jdbc.username=sonarsonar.jdbc.password=sonar