博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
build.gradle & gradle.properties
阅读量:7046 次
发布时间:2019-06-28

本文共 2492 字,大约阅读时间需要 8 分钟。

一、build.gradle

 

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}")
}
}

apply plugin: 'java'

apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'

group = 'com.inspur.iot'

version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8

repositories {

maven {
url "http://repo.iop.inspur.com:8081/nexus/content/groups/public"
}
}

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')
}

 

二、gradle.properties

 

sourceEncoding=UTF-8

nexusUsername=deployment
nexusPassword=deployment123

nexusDeployUsername=deployment
nexusDeployPassword=deployment123

group=com.inspur.cloud

version = 4.0.0-SNAPSHOT

release=false

jarBaseName=cloud-service-factory
stage=dev

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:9000
sonar.jdbc.url=jdbc:mysql://sonar.iop.inspur.com:3306/sonar
sonar.jdbc.driverClassName=com.mysql.jdbc.Driver
sonar.jdbc.username=sonar
sonar.jdbc.password=sonar

转载地址:http://cazol.baihongyu.com/

你可能感兴趣的文章
使用MyBatis的resultMap高级查询时常用的方式总结
查看>>
强制杀进程
查看>>
zt:vim环境配置
查看>>
七牛上图片总是net::ERR_NAME_NOT_RESOLVED
查看>>
HorizontalScrollView回弹效果
查看>>
ORACLE数据库概念
查看>>
安装SQL server 2008 R2和QL server 2008,与SQL server 2008升级SQL server 2008 R2
查看>>
实验六
查看>>
2018-2019-2 网络对抗技术 20165323 Exp3 免杀原理与实践
查看>>
Jdk1.8--HashMap源码分析
查看>>
PL/SQL触发器
查看>>
Linux常用命令
查看>>
数据挖掘九律
查看>>
amazon 设计 番外篇 1.
查看>>
Extjs4.1.x 框架搭建 采用 Application 动态按需加载 MVC 各模块完美实现
查看>>
malloc和new的区别
查看>>
openstack network
查看>>
dsu+树链剖分+树分治
查看>>
android+eclipse+mysql+servlet(Android与mysql建立链接)
查看>>
JMX
查看>>