Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions affectedmoduledetector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ java {
targetCompatibility = JavaVersion.VERSION_1_7
}

jacoco {
toolVersion = "0.8.7"
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation("junit:junit:4.13.2")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.dropbox.affectedmoduledetector

import com.google.common.truth.Truth.assertThat
import junit.framework.Assert.fail
import org.gradle.api.Project
import org.gradle.api.internal.plugins.PluginApplicationException
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
import java.lang.IllegalStateException

class AffectedModuleDetectorPluginTest {

Expand Down Expand Up @@ -39,8 +40,8 @@ class AffectedModuleDetectorPluginTest {
try {
// WHEN
childProject.pluginManager.apply(AffectedModuleDetectorPlugin::class.java)
fail("Expected exception not thrown")
} catch (e: Exception) {
throw IllegalStateException("Expected to throw exception")
} catch (e: PluginApplicationException) {
// THEN
assertThat(e.message).isEqualTo("Failed to apply plugin [class 'com.dropbox.affectedmoduledetector.AffectedModuleDetectorPlugin']")
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.4.10"
ext.kotlin_version = "1.5.31"
repositories {
google()
jcenter()
Expand Down