From 0832d1d873807d99634cc7ed4e6f3e06ddde508f Mon Sep 17 00:00:00 2001 From: stleary Date: Fri, 22 May 2020 11:24:20 -0500 Subject: [PATCH] gradle support --- build.gradle | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 build.gradle diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..64f87d2 --- /dev/null +++ b/build.gradle @@ -0,0 +1,58 @@ +/* + * This file was generated by the Gradle 'init' task. + */ +apply plugin: 'java' +apply plugin: 'eclipse' +// apply plugin: 'jacoco' +apply plugin: 'maven-publish' + +//plugins { + // id 'java' + //id 'maven-publish' +// } + +repositories { + mavenLocal() + maven { + url = uri('https://oss.sonatype.org/content/repositories/snapshots') + } + + maven { + url = uri('http://repo.maven.apache.org/maven2') + } +} + +dependencies { + testImplementation 'junit:junit:4.12' + testImplementation 'com.jayway.jsonpath:json-path:2.1.0' + testImplementation 'org.mockito:mockito-core:1.9.5' +} + +subprojects { + tasks.withType(Javadoc).all { enabled = false } +} + +group = 'org.json' +version = 'v20200429-SNAPSHOT' +description = 'JSON in Java' +sourceCompatibility = '1.7' + +configurations.all { +} + +java { + withSourcesJar() + withJavadocJar() +} + +publishing { + publications { + maven(MavenPublication) { + from(components.java) + } + } +} + +tasks.withType(JavaCompile) { + options.encoding = 'UTF-8' +}