When building `main` locally, I get these 2 failur...
# refreshversions
e
When building
main
locally, I get these 2 failures. Anyone know why?
Copy code
RefreshVersionsUpgradeMigrationTest > test removal of migration call for Gradle Groovy DSL() FAILED
    org.opentest4j.AssertionFailedError at RefreshVersionsUpgradeMigrationTest.kt:29

RefreshVersionsUpgradeMigrationTest > test removal of migration call for Gradle Kotlin DSL() FAILED
    org.opentest4j.AssertionFailedError at RefreshVersionsUpgradeMigrationTest.kt:19
j
it works for me, what is the error? Do you have a build scan link?
e
fixing
Copy code
rg.opentest4j.AssertionFailedError: expected: <import de.fayard.refreshVersions.bootstrapRefreshVersions

buildscript {
    repositories {
        maven(url = "<https://dl.bintray.com/jmfayard/maven>")
        gradlePluginPortal()
    }
    dependencies.classpath("de.fayard.refreshVersions:refreshVersions:0.9.6-dev-003")
}

bootstrapRefreshVersions()

plugins {
    id("com.gradle.enterprise").version("3.1.1")
}

gradleEnterprise {
    buildScan {
        termsOfServiceUrl = "<https://gradle.com/terms-of-service>"
        termsOfServiceAgree = "yes"
        publishAlwaysIf(System.getenv("GITHUB_ACTIONS")?.toBoolean() == true)
    }
}

val pluginsVersion: String = file("version.txt").bufferedReader().use { it.readLine() }

gradle.beforeProject {
    version = pluginsVersion
    group = "de.fayard.refreshVersions"
    loadLocalProperties()
}

include("core", "dependencies")
project(":core").name = "refreshVersions-core"
project(":dependencies").name = "refreshVersions"

fun Project.loadLocalProperties() {
    val localPropertiesFile = rootDir.resolve("local.properties")
    if (localPropertiesFile.exists()) {
        val localProperties = java.util.Properties()
        localProperties.load(localPropertiesFile.inputStream())
        localProperties.forEach { (k, v) -> if (k is String) project.extra.set(k, v) }
    }
}
> but was: <import de.fayard.refreshVersions.bootstrapRefreshVersions

buildscript {
    repositories {
        maven(url = "<https://dl.bintray.com/jmfayard/maven>")
        gradlePluginPortal()
    }
    dependencies.classpath("de.fayard.refreshVersions:refreshVersions:0.9.6-dev-003")
}



bootstrapRefreshVersions()

plugins {
    id("com.gradle.enterprise").version("3.1.1")
}

gradleEnterprise {
    buildScan {
        termsOfServiceUrl = "<https://gradle.com/terms-of-service>"
        termsOfServiceAgree = "yes"
        publishAlwaysIf(System.getenv("GITHUB_ACTIONS")?.toBoolean() == true)
    }
}

val pluginsVersion: String = file("version.txt").bufferedReader().use { it.readLine() }

gradle.beforeProject {
    version = pluginsVersion
    group = "de.fayard.refreshVersions"
    loadLocalProperties()
}

include("core", "dependencies")
project(":core").name = "refreshVersions-core"
project(":dependencies").name = "refreshVersions"

fun Project.loadLocalProperties() {
    val localPropertiesFile = rootDir.resolve("local.properties")
    if (localPropertiesFile.exists()) {
        val localProperties = java.util.Properties()
        localProperties.load(localPropertiesFile.inputStream())
        localProperties.forEach { (k, v) -> if (k is String) project.extra.set(k, v) }
    }
}
>
line-endings issue? ­čÖé windows vs unix
j
I've created an issue, you can disable the tests in the meantime https://github.com/jmfayard/refreshVersions/issues/381
­čÖĆ 1