This repository was archived by the owner on Nov 12, 2019. It is now read-only.
forked from jycr/java-diff-utils
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
115 lines (95 loc) · 3.06 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
group = 'io.github.java-diff-utils'
archivesBaseName = 'java-diff-utils'
version = '2.2.1-SNAPSHOT'
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
dependencies {
compile group: 'com.google.code.findbugs', name: 'jsr305', version:'3.0.0'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version:'1.3'
testCompile group: 'junit', name: 'junit', version:'4.12'
}
compileJava {
// files are all encoded using UTF-8
options.encoding = 'UTF-8'
}
compileTestJava {
// files are all encoded using UTF-8
options.encoding = 'UTF-8'
}
javadoc {
failOnError = false
options {
// files are all encoded using UTF-8
encoding = 'UTF-8'
version = true
author = true
}
}
jar {
manifest {
attributes('Automatic-Module-Name': 'io.github.adr.embedded')
}
}
repositories {
jcenter()
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
archives javadocJar
}
signing {
sign configurations.archives
}
// See https://central.sonatype.org/pages/gradle.html for a documentation
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'Java Diff Utils'
packaging 'jar'
// optionally artifactId can be defined here
description 'A library for computing diffs, applying patches, generation side-by-side view in Java'
url 'https://github.com/java-diff-utils/java-diff-utils'
scm {
connection 'scm:git:https://github.com/java-diff-utils/java-diff-utils.git'
developerConnection 'scm:git:github.com:java-diff-utils/java-diff-utils.git'
url 'https://github.com/java-diff-utils/java-diff-utils/tree/master'
}
licenses {
license {
name 'The Apache Software License, Version 1.1'
url 'http://www.apache.org/licenses/LICENSE-1.1'
}
}
developers {
developer {
id 'koppor'
name 'Oliver Kopp'
email '[email protected]'
}
}
}
}
}
}