|
1 | 1 | plugins {
|
2 |
| - id "com.gradle.build-scan" version "1.16" |
3 |
| - id "com.jfrog.artifactory" version "4.7.5" |
4 |
| - id "com.jfrog.bintray" version "1.8.4" |
5 |
| - id "com.github.ben-manes.versions" version "0.20.0" |
6 |
| - id "com.gradle.plugin-publish" version "0.10.0" |
7 |
| - id "org.jetbrains.kotlin.jvm" version "1.2.70" |
8 |
| - id "org.jetbrains.dokka" version "0.9.17" |
9 |
| - id "java-gradle-plugin" |
10 |
| - id "groovy" |
11 |
| - id "maven-publish" |
| 2 | + id 'com.gradle.build-scan' version '1.16' |
| 3 | + id 'com.jfrog.artifactory' version '4.8.1' |
| 4 | + id 'com.jfrog.bintray' version '1.8.4' |
| 5 | + id 'com.github.ben-manes.versions' version '0.20.0' |
| 6 | + id 'com.gradle.plugin-publish' version '0.10.0' |
| 7 | + id 'org.jetbrains.kotlin.jvm' version '1.3.10' |
| 8 | + id 'org.jetbrains.dokka' version '0.9.17' |
| 9 | + id 'java-gradle-plugin' |
| 10 | + id 'groovy' |
| 11 | + id 'maven-publish' |
12 | 12 | }
|
13 | 13 |
|
14 | 14 | repositories {
|
15 | 15 | jcenter()
|
16 | 16 | google()
|
17 |
| - maven { url "https://oss.sonatype.org/content/repositories/snapshots" } // For Spoon snapshot, until 2.0.0 is released |
| 17 | + maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } // For Spoon snapshot, until 2.0.0 is released |
18 | 18 | }
|
19 | 19 |
|
20 |
| -apply from: "gradle/dependencies.gradle" |
| 20 | +apply from: 'gradle/dependencies.gradle' |
21 | 21 |
|
22 | 22 | group = GROUP
|
23 | 23 | version = VERSION_NAME
|
24 | 24 | description = POM_DESCRIPTION
|
25 | 25 |
|
26 |
| -sourceCompatibility = ext.javaVersion |
27 |
| -targetCompatibility = ext.javaVersion |
| 26 | +sourceCompatibility = versions.java |
| 27 | +targetCompatibility = versions.java |
28 | 28 |
|
29 | 29 | jar {
|
30 | 30 | manifest {
|
31 | 31 | attributes(
|
32 |
| - "Implementation-Title": POM_NAME, |
33 |
| - "Implementation-Version": version, |
34 |
| - "Built-By": System.getProperty("user.name"), |
35 |
| - "Built-Date": new Date(), |
36 |
| - "Built-JDK": System.getProperty("java.version"), |
37 |
| - "Built-Gradle": gradle.gradleVersion) |
| 32 | + 'Implementation-Title': POM_NAME, |
| 33 | + 'Implementation-Version': version, |
| 34 | + 'Built-By': System.getProperty('user.name'), |
| 35 | + 'Built-Date': new Date(), |
| 36 | + 'Built-JDK': System.getProperty('java.version'), |
| 37 | + 'Built-Gradle': gradle.gradleVersion) |
38 | 38 | }
|
39 | 39 | }
|
40 | 40 |
|
41 | 41 | configurations.all {
|
42 |
| - resolutionStrategy.cacheDynamicVersionsFor 0, "seconds" |
| 42 | + resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds' |
43 | 43 |
|
44 | 44 | resolutionStrategy {
|
45 | 45 | eachDependency { details ->
|
46 |
| - if (details.requested.name == "kotlin-stdlib-jre8") { |
47 |
| - details.useTarget group: details.requested.group, name: "kotlin-stdlib-jdk8", version: details.requested.version |
| 46 | + if (details.requested.name == 'kotlin-stdlib-jre8') { |
| 47 | + details.useTarget group: details.requested.group, name: 'kotlin-stdlib-jdk8', version: details.requested.version |
48 | 48 | }
|
49 |
| - if (details.requested.name == "kotlin-stdlib-jre7") { |
50 |
| - details.useTarget group: details.requested.group, name: "kotlin-stdlib-jre7", version: details.requested.version |
| 49 | + if (details.requested.name == 'kotlin-stdlib-jre7') { |
| 50 | + details.useTarget group: details.requested.group, name: 'kotlin-stdlib-jre7', version: details.requested.version |
51 | 51 | }
|
52 | 52 | }
|
53 | 53 | }
|
54 | 54 | }
|
55 | 55 |
|
56 | 56 | dependencies {
|
57 |
| - implementation deps.kotlinStdlib |
58 |
| - implementation deps.kotlinReflect |
59 |
| - implementation deps.gradle |
60 |
| - implementation deps.spoonRunner |
61 |
| - implementation deps.ddmlib |
| 57 | + implementation deps.kotlin.stdlib.jdk |
| 58 | + implementation deps.kotlin.reflect |
| 59 | + implementation deps.spoon.runner |
| 60 | + implementation deps.android.tools.build.gradle |
| 61 | + implementation deps.android.tools.ddmlib |
62 | 62 |
|
63 | 63 | testImplementation localGroovy()
|
64 |
| - testImplementation deps.spockCore, { exclude module: "groovy-all" } // Use localGroovy() |
| 64 | + testImplementation deps.spock, { exclude module: 'groovy-all' } // Use localGroovy() |
65 | 65 | }
|
66 | 66 |
|
67 |
| -apply from: "gradle/scan.gradle" |
68 |
| -apply from: "gradle/compile.gradle" |
69 |
| -apply from: "gradle/plugin.gradle" |
70 |
| -apply from: "gradle/publish.gradle" |
| 67 | +apply from: 'gradle/scan.gradle' |
| 68 | +apply from: 'gradle/compile.gradle' |
| 69 | +apply from: 'gradle/plugin.gradle' |
| 70 | +apply from: 'gradle/publish.gradle' |
71 | 71 |
|
72 | 72 | tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
|
73 | 73 | kotlinOptions {
|
74 |
| - jvmTarget = rootProject.ext.javaVersion |
| 74 | + jvmTarget = rootProject.versions.java |
75 | 75 | allWarningsAsErrors = true
|
76 | 76 | }
|
77 | 77 | }
|
|
0 commit comments