Remove gradle-wrapper arg

It is the default behavior to use the project's Gradle wrapper if available.
This commit is contained in:
Tad Fisher
2019-10-16 14:51:54 -07:00
parent 31c3174e4f
commit 2400aa55d0
4 changed files with 33 additions and 11 deletions

View File

@@ -0,0 +1,22 @@
package org.nixos.gradle2nix
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.io.TempDir
import java.io.File
import kotlin.test.assertEquals
class WrapperTest {
@TempDir
lateinit var root: File
@Test
fun `resolves gradle version from wrapper configuration`() {
val model = root.buildKotlin("""
tasks.wrapper {
gradleVersion = "5.5.1"
}
""".trimIndent())
assertEquals(model.gradle.version, "5.5.1")
}
}