Skip to content

Commit

Permalink
soft property lookup to get past jitpack build
Browse files Browse the repository at this point in the history
  • Loading branch information
trevjonez committed Jul 1, 2019
1 parent f3dcf04 commit 6ebcbfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/src/test/kotlin/com/trevjonez/agrp/AGRPTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import org.assertj.core.api.Assertions.assertThat
import org.gradle.api.plugins.ExtensionAware
import org.gradle.testfixtures.ProjectBuilder
import org.gradle.testkit.runner.GradleRunner
import org.junit.Assume.assumeNotNull
import org.junit.Before
import org.junit.Rule
import org.junit.Test
Expand Down Expand Up @@ -178,7 +179,9 @@ class AGRPTest {
private fun systemProperty(): ReadOnlyProperty<Any, String> {
return object : ReadOnlyProperty<Any, String> {
override fun getValue(thisRef: Any, property: KProperty<*>): String {
return System.getProperty(property.name)
val prop = System.getProperty(property.name)
assumeNotNull(prop)
return prop
}
}
}
Expand Down

0 comments on commit 6ebcbfb

Please sign in to comment.