-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #519 from stleary/gradle-support
Gradle support
- Loading branch information
Showing
34 changed files
with
711 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.