|
| 1 | +/* |
| 2 | + * Copyright (c) 2014, Francis Galiegue (fgaliegue@gmail.com) |
| 3 | + * |
| 4 | + * This software is dual-licensed under: |
| 5 | + * |
| 6 | + * - the Lesser General Public License (LGPL) version 3.0 or, at your option, any |
| 7 | + * later version; |
| 8 | + * - the Apache Software License (ASL) version 2.0. |
| 9 | + * |
| 10 | + * The text of this file and of both licenses is available at the root of this |
| 11 | + * project or, if you have the jar distribution, in directory META-INF/, under |
| 12 | + * the names LGPL-3.0.txt and ASL-2.0.txt respectively. |
| 13 | + * |
| 14 | + * Direct link to the sources: |
| 15 | + * |
| 16 | + * - LGPL 3.0: https://www.gnu.org/licenses/lgpl-3.0.txt |
| 17 | + * - ASL 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt |
| 18 | + */ |
| 19 | + |
| 20 | +/* |
| 21 | + * Project-specific settings. Unfortunately we cannot put the name in there! |
| 22 | + */ |
| 23 | +group = "com.github.java-json-tools"; |
| 24 | +version = "1.2.13-SNAPSHOT"; |
| 25 | +sourceCompatibility = JavaVersion.VERSION_1_7; |
| 26 | +targetCompatibility = JavaVersion.VERSION_1_7; // defaults to sourceCompatibility |
| 27 | + |
| 28 | +/* |
| 29 | + * List of dependencies |
| 30 | + */ |
| 31 | +dependencies { |
| 32 | + compile(group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.9.9"); |
| 33 | + compile(group: "com.google.guava", name: "guava", version: "28.1-android"); |
| 34 | + compile(group: "com.github.java-json-tools", name: "jackson-coreutils", version: "1.11"); |
| 35 | + compile(group: "com.github.java-json-tools", name: "uri-template", version: "0.10"); |
| 36 | + // FIXME: no javadoc |
| 37 | + // FIXME: update beyond 1.7.7.x once we're Java 8 or better. |
| 38 | + compile(group: "org.mozilla", name: "rhino", version: "1.7.7.2"); |
| 39 | + compile(group: "com.google.code.findbugs", name: "jsr305", version: "3.0.2"); |
| 40 | + testCompile(group: "org.testng", name: "testng", version: "6.10") { |
| 41 | + exclude(group: "junit", module: "junit"); |
| 42 | + exclude(group: "org.beanshell", module: "bsh"); |
| 43 | + exclude(group: "org.yaml", module: "snakeyaml"); |
| 44 | + }; |
| 45 | + testCompile(group: "org.mockito", name: "mockito-core", version: "2.4.2"); |
| 46 | + // FIXME: update to 3.x once we're off of Java 7. |
| 47 | + testCompile(group: "org.assertj", name: "assertj-core", version: "2.9.1"); |
| 48 | +} |
| 49 | + |
| 50 | +javadoc { |
| 51 | + options { |
| 52 | + def currentJavaVersion = org.gradle.api.JavaVersion.current() |
| 53 | + // FIXME: https://github.com/gradle/gradle/issues/11182 |
| 54 | + if (currentJavaVersion.compareTo(org.gradle.api.JavaVersion.VERSION_1_9) >= 0) { |
| 55 | + addStringOption("-release", "7"); |
| 56 | + } |
| 57 | + links("https://docs.oracle.com/javase/7/docs/api/"); |
| 58 | + links("https://www.javadoc.io/doc/com.google.code.findbugs/jsr305/3.0.1/"); |
| 59 | + links("https://fasterxml.github.io/jackson-databind/javadoc/2.2.0/"); |
| 60 | + links("https://fasterxml.github.io/jackson-core/javadoc/2.2.0/"); |
| 61 | + links("https://www.javadoc.io/doc/com.google.guava/guava/28.1-android/"); |
| 62 | + links("https://java-json-tools.github.io/btf/"); |
| 63 | + links("https://java-json-tools.github.io/msg-simple/"); |
| 64 | + links("https://java-json-tools.github.io/jackson-coreutils/"); |
| 65 | + links("https://java-json-tools.github.io/uri-template/"); |
| 66 | + } |
| 67 | +} |
0 commit comments