1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- plugins {
- id "io.spring.dependency-management" version "1.0.7.RELEASE" apply false
- id "org.springframework.boot" version "2.1.4.RELEASE" apply false
- }
- allprojects {
- group 'com.usoftchina.uas'
- version '1.0.0-SNAPSHOT'
- }
- subprojects { Project subproject ->
- if (subproject.hasProperty('projVersion')) {
- subproject.version = subproject.projVersion
- } else {
- subproject.version = '1.0.0-SNAPSHOT'
- }
-
- apply plugin: 'java'
- apply plugin: 'idea'
- apply plugin: 'maven'
- apply plugin: 'maven-publish'
- apply plugin: 'io.spring.dependency-management'
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- [compileJava,compileTestJava,javadoc]*.options*.encoding = 'UTF-8'
- ext {
- springBootVersion = '2.1.4.RELEASE'
- // dependencies
- ojdbc = 'com.oracle:ojdbc6:11.2.0'
- fastjson = 'com.alibaba:fastjson:1.2.47'
- threadLocal = 'com.alibaba:transmittable-thread-local:2.2.0'
-
- repoBaseUrl = "http://maven.ubtob.com/artifactory"
- snapshotUrl = "$repoBaseUrl/libs-snapshot-local"
- releaseUrl = "$repoBaseUrl/libs-release-local"
- }
- repositories {
- mavenLocal()
- mavenCentral()
- maven { url "https://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}"
- }
- }
- 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'
- }
- }
- }
- }
- }
|