mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-11 23:40:37 -05:00
Remove gradle-wrapper arg
It is the default behavior to use the project's Gradle wrapper if available.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user