-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
140 lines (122 loc) · 4.56 KB
/
build.gradle
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
buildscript {
ext {
//@formatter:off
flinkVersion = '1.18.0'
springbootVersion = '3.3.5'
hadoopVersion = '3.3.4'
//@formatter:on
}
repositories {
gradlePluginPortal()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springbootVersion"
classpath "io.spring.gradle:dependency-management-plugin:1.1.4"
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'
classpath "org.openrewrite:plugin:6.28.3"
}
}
subprojects {
group 'com.fortycoderplus.flink.ext'
version "1.0.0"
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'idea'
apply plugin: 'org.openrewrite.rewrite'
repositories {
mavenLocal()
maven {
url "https://repo.huaweicloud.com/repository/maven/"
}
mavenCentral()
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-starter-parent:${springbootVersion}"
}
}
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'
// jackson
implementation 'com.fasterxml.jackson.core:jackson-annotations'
implementation 'com.fasterxml.jackson.core:jackson-core'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8'
// flink
implementation "org.apache.flink:flink-core:$flinkVersion"
implementation "org.apache.flink:flink-runtime:$flinkVersion"
// test:junit
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.junit.jupiter:junit-jupiter-engine"
// test:springboot
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// rewrite
rewrite "org.openrewrite.recipe:rewrite-spring:5.25.0"
}
rewrite {
activeRecipe("org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3")
}
plugins.withType(JavaPlugin) {
project.sourceCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.fortycoderplus.flink.ext'
artifactId = project.name
version = project.version
from components.java
pom {
name = "Flink History Server Extension :: $project.name"
description = "Flink History Server Extension :: $project.name"
url = 'https://github.com/40coderplus/flink-history-server'
developers {
developer {
id = 'Codingendless'
name = 'Codingendless'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:[email protected]:40coderplus/flink-history-server.git'
url = 'https://github.com/40coderplus/flink-history-server'
}
}
}
}
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'