-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
105 lines (93 loc) · 3.08 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
plugins {
id 'java'
id 'signing'
id 'eclipse'
id 'maven-publish'
}
group 'org.freeplane.archunit'
version = '0.0.2'
targetCompatibility='1.8'
sourceCompatibility='1.8'
repositories {
mavenCentral()
maven { url "${project.gradle.gradleUserHomeDir}/local-artifacts" }
}
dependencies {
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.tngtech.archunit:archunit:1.2.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
testImplementation 'com.tngtech.archunit:archunit-junit5:1.2.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1'
testImplementation 'org.mockito:mockito-core:4.6.1'
testImplementation 'org.mockito:mockito-junit-jupiter:4.6.1'
}
task sourceJar(type: Jar) {
archiveClassifier = 'sources'
from (sourceSets.main.allSource)
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
build.dependsOn javadoc
publishing {
publications {
maven(MavenPublication) {
artifact jar
artifact sourceJar
artifact javadocJar
pom {
name = project.name
description = 'Application and java components for html'
url = 'https://github.com/freeplane/freeplane-archunit-extension'
scm {
url = 'https://github.com/freeplane/freeplane-archunit-extension'
connection = 'https://github.com/freeplane/freeplane-archunit-extension.git'
developerConnection = '[email protected]:freeplane/freeplane-archunit-extension.git'
}
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'dpolivaev'
name = 'Dimitry Polivaev'
email = '[email protected]'
}
}
withXml {
def dependenciesNode = asNode().appendNode('dependencies')
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', 'com.google.code.gson')
dependencyNode.appendNode('artifactId', 'gson')
dependencyNode.appendNode('version', '2.10.1')
}
}
}
}
repositories {
maven {
name = 'central'
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username project.findProperty('ossrhUsername') ?: '-'
password project.findProperty('ossrhPassword') ?: '-'
}
}
maven {
name = 'localartifacts'
url = "${project.gradle.gradleUserHomeDir}/local-artifacts"
}
}
}
signing {
sign publishing.publications.maven
}
javadoc {
enabled = true
options.encoding = "UTF-8"
failOnError = false
}