| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d89407b commit 10077fc
22 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ jobs: | |||
| 23 | 23 | uses: actions/setup-java@v3 | |
| 24 | 24 | with: | |
| 25 | 25 | distribution: 'zulu' | |
| 26 | - java-version: '11' | ||
| 26 | + java-version: '17' | ||
| 27 | 27 | ||
| 28 | 28 | - name: Upload Artifacts | |
| 29 | 29 | run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-daemon --no-parallel | |
@@ -60,7 +60,7 @@ jobs: | |||
| 60 | 60 | uses: actions/setup-java@v3 | |
| 61 | 61 | with: | |
| 62 | 62 | distribution: 'zulu' | |
| 63 | - java-version: '11' | ||
| 63 | + java-version: '17' | ||
| 64 | 64 | - name: Run tests | |
| 65 | 65 | uses: reactivecircus/android-emulator-runner@v2 | |
| 66 | 66 | with: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ jobs: | |||
| 20 | 20 | uses: actions/setup-java@v3 | |
| 21 | 21 | with: | |
| 22 | 22 | distribution: 'zulu' | |
| 23 | - java-version: '11' | ||
| 23 | + java-version: '17' | ||
| 24 | 24 | - name: Build sample | |
| 25 | 25 | run: | | |
| 26 | 26 | ./gradlew :affectedmoduledetector:publishToMavenLocal | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,12 +9,16 @@ plugins { | |||
| 9 | 9 | apply from: rootProject.file("gradle/jacoco.gradle") | |
| 10 | 10 | ||
| 11 | 11 | java { | |
| 12 | - sourceCompatibility = JavaVersion.VERSION_1_8 | ||
| 13 | - targetCompatibility = JavaVersion.VERSION_1_8 | ||
| 12 | + sourceCompatibility = JavaVersion.VERSION_11 | ||
| 13 | + targetCompatibility = JavaVersion.VERSION_11 | ||
| 14 | + } | ||
| 15 | + | ||
| 16 | + kotlin { | ||
| 17 | + jvmToolchain(11) | ||
| 14 | 18 | } | |
| 15 | 19 | ||
| 16 | 20 | jacoco { | |
| 17 | - toolVersion = "0.8.8" | ||
| 21 | + toolVersion = "0.8.10" | ||
| 18 | 22 | } | |
| 19 | 23 | ||
| 20 | 24 | gradlePlugin { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,8 +8,8 @@ import org.gradle.api.Plugin | |||
| 8 | 8 | import org.gradle.api.Project | |
| 9 | 9 | import org.gradle.api.Task | |
| 10 | 10 | import org.gradle.api.tasks.testing.Test | |
| 11 | - import org.gradle.internal.impldep.org.jetbrains.annotations.VisibleForTesting | ||
| 12 | 11 | import org.gradle.util.GradleVersion | |
| 12 | + import org.jetbrains.annotations.VisibleForTesting | ||
| 13 | 13 | ||
| 14 | 14 | /** | |
| 15 | 15 | * This plugin creates and registers all affected test tasks. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,8 +60,8 @@ class AffectedModuleDetectorIntegrationTest { | |||
| 60 | 60 | | jcenter() | |
| 61 | 61 | | } | |
| 62 | 62 | | dependencies { | |
| 63 | - | classpath "com.android.tools.build:gradle:4.1.0" | ||
| 64 | - | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10" | ||
| 63 | + | classpath "com.android.tools.build:gradle:7.4.0" | ||
| 64 | + | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25" | ||
| 65 | 65 | | } | |
| 66 | 66 | |} | |
| 67 | 67 | |plugins { | |
@@ -81,14 +81,22 @@ class AffectedModuleDetectorIntegrationTest { | |||
| 81 | 81 | | id 'kotlin-android' | |
| 82 | 82 | | } | |
| 83 | 83 | | android { | |
| 84 | - | compileSdkVersion 30 | ||
| 85 | - | buildToolsVersion "30.0.2" | ||
| 84 | + | compileSdkVersion 33 | ||
| 85 | + | namespace "sample" | ||
| 86 | 86 | | } | |
| 87 | 87 | | dependencies { | |
| 88 | 88 | | implementation project(":sample-core") | |
| 89 | 89 | | }""".trimMargin() | |
| 90 | 90 | ) | |
| 91 | 91 | ||
| 92 | + tmpFolder.newFolder("sample-app/src/main/") | ||
| 93 | + tmpFolder.newFile("sample-app/src/main/AndroidManifest.xml").writeText( | ||
| 94 | + """ | ||
| 95 | + |<manifest> | ||
| 96 | + |</manifest> | ||
| 97 | + """.trimMargin() | ||
| 98 | + ) | ||
| 99 | + | ||
| 92 | 100 | tmpFolder.newFile("sample-core/build.gradle").writeText( | |
| 93 | 101 | """plugins { | |
| 94 | 102 | | id 'com.android.library' | |
@@ -98,11 +106,19 @@ class AffectedModuleDetectorIntegrationTest { | |||
| 98 | 106 | | assembleAndroidTestTask = "assembleAndroidTest" | |
| 99 | 107 | | } | |
| 100 | 108 | | android { | |
| 101 | - | compileSdkVersion 30 | ||
| 102 | - | buildToolsVersion "30.0.2" | ||
| 109 | + | namespace 'sample.core' | ||
| 110 | + | compileSdkVersion 33 | ||
| 103 | 111 | | }""".trimMargin() | |
| 104 | 112 | ) | |
| 105 | 113 | ||
| 114 | + tmpFolder.newFolder("sample-core/src/main/") | ||
| 115 | + tmpFolder.newFile("sample-core/src/main/AndroidManifest.xml").writeText( | ||
| 116 | + """ | ||
| 117 | + |<manifest> | ||
| 118 | + |</manifest> | ||
| 119 | + """.trimMargin() | ||
| 120 | + ) | ||
| 121 | + | ||
| 106 | 122 | // WHEN | |
| 107 | 123 | val result = GradleRunner.create() | |
| 108 | 124 | .withProjectDir(tmpFolder.root) | |
@@ -138,8 +154,8 @@ class AffectedModuleDetectorIntegrationTest { | |||
| 138 | 154 | | jcenter() | |
| 139 | 155 | | } | |
| 140 | 156 | | dependencies { | |
| 141 | - | classpath "com.android.tools.build:gradle:4.1.0" | ||
| 142 | - | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10" | ||
| 157 | + | classpath "com.android.tools.build:gradle:7.4.0" | ||
| 158 | + | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25" | ||
| 143 | 159 | | } | |
| 144 | 160 | |} | |
| 145 | 161 | |plugins { | |
@@ -162,14 +178,22 @@ class AffectedModuleDetectorIntegrationTest { | |||
| 162 | 178 | | id 'kotlin-android' | |
| 163 | 179 | | } | |
| 164 | 180 | | android { | |
| 165 | - | compileSdkVersion 30 | ||
| 166 | - | buildToolsVersion "30.0.2" | ||
| 181 | + | namespace 'sample' | ||
| 182 | + | compileSdkVersion 33 | ||
| 167 | 183 | | } | |
| 168 | 184 | | dependencies { | |
| 169 | 185 | | implementation project(":sample-core") | |
| 170 | 186 | | }""".trimMargin() | |
| 171 | 187 | ) | |
| 172 | 188 | ||
| 189 | + tmpFolder.newFolder("sample-app/src/main/") | ||
| 190 | + tmpFolder.newFile("sample-app/src/main/AndroidManifest.xml").writeText( | ||
| 191 | + """ | ||
| 192 | + |<manifest> | ||
| 193 | + |</manifest> | ||
| 194 | + """.trimMargin() | ||
| 195 | + ) | ||
| 196 | + | ||
| 173 | 197 | tmpFolder.newFile("sample-core/build.gradle").writeText( | |
| 174 | 198 | """plugins { | |
| 175 | 199 | | id 'com.android.library' | |
@@ -179,11 +203,19 @@ class AffectedModuleDetectorIntegrationTest { | |||
| 179 | 203 | | assembleAndroidTestTask = "assembleAndroidTest" | |
| 180 | 204 | | } | |
| 181 | 205 | | android { | |
| 182 | - | compileSdkVersion 30 | ||
| 183 | - | buildToolsVersion "30.0.2" | ||
| 206 | + | namespace 'sample.core' | ||
| 207 | + | compileSdkVersion 33 | ||
| 184 | 208 | | }""".trimMargin() | |
| 185 | 209 | ) | |
| 186 | 210 | ||
| 211 | + tmpFolder.newFolder("sample-core/src/main/") | ||
| 212 | + tmpFolder.newFile("sample-core/src/main/AndroidManifest.xml").writeText( | ||
| 213 | + """ | ||
| 214 | + |<manifest> | ||
| 215 | + |</manifest> | ||
| 216 | + """.trimMargin() | ||
| 217 | + ) | ||
| 218 | + | ||
| 187 | 219 | // WHEN | |
| 188 | 220 | val result = GradleRunner.create() | |
| 189 | 221 | .withProjectDir(tmpFolder.root) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. | |
| 2 | 2 | buildscript { | |
| 3 | - ext.kotlin_version = "1.6.20" | ||
| 3 | + ext.kotlin_version = "1.9.25" | ||
| 4 | 4 | repositories { | |
| 5 | 5 | google() | |
| 6 | 6 | mavenCentral() | |
@@ -9,10 +9,10 @@ buildscript { | |||
| 9 | 9 | } | |
| 10 | 10 | } | |
| 11 | 11 | dependencies { | |
| 12 | - classpath "com.android.tools.build:gradle:7.3.1" | ||
| 12 | + classpath "com.android.tools.build:gradle:8.6.1" | ||
| 13 | 13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
| 14 | - classpath("org.jlleitschuh.gradle:ktlint-gradle:10.2.1") | ||
| 15 | - classpath("org.jacoco:org.jacoco.core:0.8.8") | ||
| 14 | + classpath("org.jlleitschuh.gradle:ktlint-gradle:11.4.2") | ||
| 15 | + classpath("org.jacoco:org.jacoco.core:0.8.10") | ||
| 16 | 16 | classpath "com.vanniktech:gradle-maven-publish-plugin:0.19.0" | |
| 17 | 17 | } | |
| 18 | 18 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ kotlin.code.style=official | |||
| 22 | 22 | ||
| 23 | 23 | # POM | |
| 24 | 24 | GROUP = com.dropbox.affectedmoduledetector | |
| 25 | - VERSION_NAME=0.3.2-SNAPSHOT | ||
| 25 | + VERSION_NAME=0.4.0-SNAPSHOT | ||
| 26 | 26 | ||
| 27 | 27 | POM_ARTIFACT_ID = affectedmoduledetector | |
| 28 | 28 | POM_NAME = Affected Module Detector | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,9 +47,9 @@ project.afterEvaluate { | |||
| 47 | 47 | executionData.setFrom files(coverageData) | |
| 48 | 48 | ||
| 49 | 49 | reports { | |
| 50 | - xml.enabled = true | ||
| 50 | + xml.required = true | ||
| 51 | 51 | xml.destination = file("${buildDir}/reports/jacoco/report.xml") | |
| 52 | - html.enabled = true | ||
| 52 | + html.required = true | ||
| 53 | 53 | } | |
| 54 | 54 | } | |
| 55 | 55 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,5 @@ | |||
| 1 | - #Thu Oct 15 15:49:37 PDT 2020 | ||
| 2 | 1 | distributionBase=GRADLE_USER_HOME | |
| 3 | 2 | distributionPath=wrapper/dists | |
| 3 | + distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip | ||
| 4 | 4 | zipStoreBase=GRADLE_USER_HOME | |
| 5 | 5 | zipStorePath=wrapper/dists | |
| 6 | - distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments