12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- plugins {
- id "io.spring.dependency-management" version "1.0.7.RELEASE"
- id "org.springframework.boot" version "1.5.6.RELEASE"
- }
- group 'com.usoftchina.saas'
- version '1.0.0-SNAPSHOT'
- if (project.hasProperty('projVersion')) {
- project.version = project.projVersion
- } else {
- project.version = '1.0.0-SNAPSHOT'
- }
- apply plugin: 'java'
- apply plugin: 'idea'
- apply plugin: 'maven'
- apply plugin: 'maven-publish'
- apply plugin: 'org.springframework.boot'
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- [compileJava,compileTestJava,javadoc]*.options*.encoding = 'UTF-8'
- ext {
- springBootVersion = '1.5.6.RELEASE'
- repoBaseUrl = "http://maven.ubtob.com/artifactory"
- snapshotUrl = "$repoBaseUrl/libs-snapshot-local"
- releaseUrl = "$repoBaseUrl/libs-release-local"
- }
- repositories {
- mavenLocal()
- mavenCentral()
- maven { url "http://repo.spring.io/libs-milestone" }
- maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
- maven { url "http://maven.ubtob.com/artifactory/libs-snapshot-local" }
- maven { url "http://maven.ubtob.com/artifactory/libs-release-local" }
- maven { url "http://maven.ubtob.com/artifactory/ext-release-local" }
- }
- dependencyManagement {
- imports {
- mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
- }
- }
- dependencies {
- compile "org.springframework.boot:spring-boot-starter-web"
- testCompile "org.springframework.boot:spring-boot-starter-test"
- compile 'org.springframework.boot:spring-boot-starter-jdbc'
- compile 'org.springframework.boot:spring-boot-starter-aop'
- compile "org.springframework.boot:spring-boot-starter-freemarker"
- compile "org.springframework.boot:spring-boot-starter-mail"
- compile "com.uas.account:sso-integration:1.2.4-SNAPSHOT"
- compile "com.oracle:ojdbc6:11.2.0"
- compile "com.belerweb:pinyin4j:2.5.1"
- }
- task sourcesJar(type: Jar) {
- from sourceSets.main.allJava
- classifier 'sources'
- }
- artifacts {
- archives sourcesJar
- }
- publishing {
- publications {
- plugins(MavenPublication) {
- from components.java
- artifact sourcesJar
- }
- }
- repositories {
- maven {
- url project.version.endsWith('-SNAPSHOT') ? snapshotUrl : releaseUrl
- credentials {
- username = 'yingp'
- password = '111111'
- }
- }
- }
- }
|