Skip to content

Commit 0832d1d

Browse files
committed
gradle support
1 parent 2b0a883 commit 0832d1d

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

build.gradle

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*/
4+
apply plugin: 'java'
5+
apply plugin: 'eclipse'
6+
// apply plugin: 'jacoco'
7+
apply plugin: 'maven-publish'
8+
9+
//plugins {
10+
// id 'java'
11+
//id 'maven-publish'
12+
// }
13+
14+
repositories {
15+
mavenLocal()
16+
maven {
17+
url = uri('https://oss.sonatype.org/content/repositories/snapshots')
18+
}
19+
20+
maven {
21+
url = uri('http://repo.maven.apache.org/maven2')
22+
}
23+
}
24+
25+
dependencies {
26+
testImplementation 'junit:junit:4.12'
27+
testImplementation 'com.jayway.jsonpath:json-path:2.1.0'
28+
testImplementation 'org.mockito:mockito-core:1.9.5'
29+
}
30+
31+
subprojects {
32+
tasks.withType(Javadoc).all { enabled = false }
33+
}
34+
35+
group = 'org.json'
36+
version = 'v20200429-SNAPSHOT'
37+
description = 'JSON in Java'
38+
sourceCompatibility = '1.7'
39+
40+
configurations.all {
41+
}
42+
43+
java {
44+
withSourcesJar()
45+
withJavadocJar()
46+
}
47+
48+
publishing {
49+
publications {
50+
maven(MavenPublication) {
51+
from(components.java)
52+
}
53+
}
54+
}
55+
56+
tasks.withType(JavaCompile) {
57+
options.encoding = 'UTF-8'
58+
}

0 commit comments

Comments
 (0)