-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
109 lines (95 loc) · 3.24 KB
/
build.gradle
File metadata and controls
109 lines (95 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
buildscript {
repositories {
gradlePluginPortal()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.1.0"
classpath "com.palantir.baseline:gradle-baseline-java:4.185.0"
classpath "com.diffplug.spotless:spotless-plugin-gradle:6.12.1"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.5.0.2730"
classpath 'org.owasp:dependency-check-gradle:7.4.4'
}
}
subprojects {
group 'com.fortycoderplus.u2'
version "1.0.0"
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'idea'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenLocal()
mavenCentral()
}
dependencyManagement {
}
dependencies {
// lombok
compileOnly "org.projectlombok:lombok:1.18.24"
annotationProcessor "org.projectlombok:lombok:1.18.24"
// mapstruct
implementation 'org.mapstruct:mapstruct:1.5.3.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.3.Final'
// test:junit
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
}
plugins.withType(JavaPlugin) {
project.sourceCompatibility = JavaVersion.VERSION_11
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
java {
withSourcesJar()
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.fortycoderplus.u2'
artifactId = project.name
version = project.version
from components.java
pom {
name = "Unified UDF :: $project.name"
description = "Unified UDF :: $project.name"
url = 'https://github.com/40CoderPlus/u2'
developers {
developer {
id = 'Codingendless'
name = 'Codingendless'
email = 'codingendless@40coderplus.com'
}
}
scm {
connection = 'scm:git:git@github.com:40CoderPlus/u2.git'
url = 'https://github.com/40CoderPlus/u2'
}
}
}
}
repositories {
maven {
credentials {
username "$nexusUsername"
password "$nexusPassword"
}
def releasesRepoUrl = "https://maven.40coderplus.com/repository/maven-releases/"
def snapshotsRepoUrl = "https://maven.40coderplus.com/repository/maven-snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
allowInsecureProtocol = true
}
}
}
}
apply from: 'baseline.gradle'
apply from: 'sonar.gradle'