44 lines
1.1 KiB
Groovy
44 lines
1.1 KiB
Groovy
|
plugins {
|
||
|
id 'java'
|
||
|
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
|
||
|
id 'maven'
|
||
|
}
|
||
|
|
||
|
dependencyManagement {
|
||
|
imports {
|
||
|
mavenBom 'org.apache.logging.log4j:log4j-bom:2.13.3'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
group 'com.cubetiqs'
|
||
|
version '1.0-SNAPSHOT'
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
maven {
|
||
|
url "${nexusUrl}/repository/maven-public/"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
// import a BOM
|
||
|
implementation platform('org.springframework.boot:spring-boot-dependencies:2.3.0.RELEASE')
|
||
|
|
||
|
implementation 'org.apache.logging.log4j:log4j-api'
|
||
|
implementation 'org.apache.logging.log4j:log4j-core'
|
||
|
|
||
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||
|
}
|
||
|
|
||
|
uploadArchives {
|
||
|
repositories {
|
||
|
mavenDeployer {
|
||
|
repository(url: "${nexusUrl}/repository/maven-releases/") {
|
||
|
authentication(userName: nexusUsername, password: nexusPassword)
|
||
|
}
|
||
|
snapshotRepository(url: "${nexusUrl}/repository/maven-snapshots") {
|
||
|
authentication(userName: nexusUsername, password: nexusPassword)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|