-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
112 lines (95 loc) · 3.34 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
buildscript {
repositories {
gradlePluginPortal()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.openapitools:openapi-generator-gradle-plugin:7.1.0"
classpath "com.palantir.baseline:gradle-baseline-java:5.31.0"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.4.1.3373"
classpath "com.diffplug.spotless:spotless-plugin-gradle:6.23.3"
classpath 'org.owasp:dependency-check-gradle:9.0.2'
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'com.palantir.baseline-format'
apply plugin: "org.sonarqube"
apply plugin: 'org.owasp.dependencycheck'
group = 'com.fortycoderplus.flink.sql.gateway'
version = '1.0.0'
repositories {
mavenLocal()
mavenCentral()
}
java {
withSourcesJar()
}
plugins.withType(JavaPlugin) {
project.sourceCompatibility = JavaVersion.VERSION_11
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.fortycoderplus.flink.ext'
artifactId = "sql-gateway-$project.name"
version = project.version
from components.java
pom {
name = "Flink SQL Gateway Client :: $project.name"
description = 'Flink SQL Gateway Client'
url = 'https://github.com/40coderplus/flink-sql-gateway-client'
developers {
developer {
id = '40CoderPlus'
name = '40CoderPlus'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:[email protected]:40coderplus/flink-sql-gateway-client.git'
url = 'https://github.com/40coderplus/flink-sql-gateway-client'
}
}
}
}
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
}
}
}
sonarqube {
properties {
property 'sonar.dependencyCheck.jsonReportPath', 'build/reports/dependency-check-report.json'
property 'sonar.dependencyCheck.htmlReportPath', 'build/reports/dependency-check-report.html'
property 'sonar.projectName', 'flink-sql-gateway:client'
property 'sonar.projectKey', 'flink-sql-gateway:client'
}
}
spotless {
java {
target 'src/main/java/**/*.java', 'src/test/java/**/*.java'
palantirJavaFormat()
formatAnnotations()
}
}
}