-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
124 lines (106 loc) · 3.57 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
plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
id 'signing'
id 'nebula.release' version '13.0.0'
}
group 'org.contextmapper'
sourceCompatibility = '11'
targetCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation "com.tngtech.archunit:archunit-junit5:${archUnitVersion}"
implementation "org.contextmapper:context-mapper-dsl:${cmlVersion}"
implementation "org.jmolecules:jmolecules-ddd:${jmoleculesVersion}"
implementation "org.jmolecules:jmolecules-events:${jmoleculesVersion}"
implementation "org.junit.jupiter:junit-jupiter-api:${jUnitVersion}"
testImplementation "org.assertj:assertj-core:${assertJVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${jUnitVersion}"
}
sourceSets.test.java.srcDirs = ['src/test/java','src/test/cml']
test {
useJUnitPlatform()
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
check.dependsOn jacocoTestReport
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
artifacts {
archives javadocJar, sourcesJar
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = "${project.name}"
groupId = "${project.group}"
version = "${project.version}"
from components.java
artifact javadocJar
artifact sourcesJar
pom {
name = 'Context Mapper ArchUnit Extension'
description = 'An extension for ArchUnit to test code against a CML model'
url = 'https://github.com/ContextMapper/context-mapper-archunit-extension'
organization {
name = 'Context Mapper'
url = 'https://contextmapper.org/'
}
licenses {
license {
name = 'Apache License 2.0'
url = 'https://github.com/ContextMapper/context-mapper-archunit-extension/blob/master/LICENSE'
}
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/ContextMapper/context-mapper-archunit-extension/issues'
}
scm {
url = 'https://github.com/ContextMapper/context-mapper-archunit-extension'
connection = 'scm:git:git://github.com/ContextMapper/context-mapper-archunit-extension.git'
developerConnection = 'scm:git:ssh://git@github.com:ContextMapper/context-mapper-archunit-extension.git'
}
developers {
developer {
name = 'Stefan Kapferer'
email = 'stefan@contextmapper.org'
}
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "${ossReleaseStagingRepository}"
def snapshotsRepoUrl = "${ossSnapshotRepository}"
url = project.version.toString().endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = System.getenv('OSSRH_USERNAME')
password = System.getenv('OSSRH_PASSWORD')
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
tasks.withType(GenerateModuleMetadata) {
enabled = false
}