mirror of
https://github.com/Anvilcraft/modpacktools
synced 2024-05-19 20:04:07 +02:00
remove 5 minute cache for dependencies
this does not apply only to snapshot dependencies, thus everything will be downloaded again each 5 mins
This commit is contained in:
parent
3d4a9c8359
commit
552457eb0e
|
@ -69,10 +69,6 @@ dependencies {
|
|||
testImplementation("junit:junit:4.12")
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
resolutionStrategy.cacheDynamicVersionsFor(5, "minutes")
|
||||
}
|
||||
|
||||
//This exists so options can be set for test compile and compile at once
|
||||
val kOptions = {obj: GroovyObject ->
|
||||
|
||||
|
|
|
@ -3,15 +3,12 @@ package ley.anvil.modpacktools.util
|
|||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Test
|
||||
import org.junit.rules.TemporaryFolder
|
||||
import java.io.File
|
||||
import java.net.URL
|
||||
|
||||
class UtilTest {
|
||||
@Test
|
||||
fun sanitize() = assertEquals(URL("https://example.com/test%20test"), URL("https://example.com/test test").sanitize())
|
||||
|
||||
@Test
|
||||
fun mergeTo() = assertEquals(File("testing/dir"), File("testing") mergeTo File("dir"))
|
||||
fun sanitize() =
|
||||
assertEquals(URL("https://example.com/test%20test"), URL("https://example.com/test test").sanitize())
|
||||
|
||||
@Test
|
||||
fun readAsJson() {
|
||||
|
|
Loading…
Reference in a new issue