-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
103 lines (87 loc) · 2.35 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
plugins {
id 'java'
id 'maven'
id 'jacoco'
id 'io.codearte.nexus-staging' version '0.11.0'
id "org.sonarqube" version "2.7.1"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
apply plugin: 'com.bmuschko.nexus'
archivesBaseName = 'beholder-core'
group 'com.kirekov'
version 'DEV-SNAPSHOT'
description 'Automatic Java code style checker'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
implementation 'com.github.simonharmonicminor:java-useful-utils:1.2'
implementation 'fr.inria.gforge.spoon:spoon-core:8.1.0'
}
test {
useJUnitPlatform()
}
modifyPom {
project {
name 'beholder-core'
description 'Automatic Java code style checker'
url 'https://github.com/SimonHarmonicMinor/beholder-core'
inceptionYear '2020'
scm {
url 'https://github.com/SimonHarmonicMinor/beholder-core'
connection 'scm:https://github.com/SimonHarmonicMinor/beholder-core.git'
developerConnection 'scm:git://github.com/SimonHarmonicMinor/beholder-core.git'
}
licenses {
license {
name 'MIT License'
url 'https://www.mit.edu/~amini/LICENSE.md'
distribution 'repo'
}
}
developers {
developer {
id 'kirekov'
name 'Semyon Kirekov'
email 'kirekov@gmail.com'
}
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
nexusStaging {
packageGroup = "com.github.simonharmonicminor"
}
jacocoTestReport {
reports {
xml.enabled true
}
}
sonarqube {
properties {
property "sonar.projectKey", "SimonHarmonicMinor_beholder-core"
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml"
}
}