jmfayard
10/24/2019, 3:25 AMjmfayard
11/11/2019, 2:15 PMjmfayard
11/16/2019, 7:46 AMbreandan
01/13/2020, 11:27 AMplugins
section to read from the versions file but the dependencies
versions appear to work wellDanilo Pianini
04/06/2020, 1:33 PMnkiesel
05/02/2020, 1:56 AMsettings.gradle
starts with pluginManagement { repositories { gradlePluginPortal() } plugins { id "org.jetbrains.kotlin.jvm" version "1.3.60" ...
(with proper whitespace) and I could not add the new stuff in there. So I removed the references to plugin buildSrcVersions
in both settings.gradle
and build.gradle
, added refreshVersions
and dependencies
to both, and added buildScript.dependencies.classpath "de.fayard:dependencies:0.5.8"
and the import
to build.gradle
. This gets me past the "import" (note: 0.5.8 seems to have changes the layout and I use import de.fayard.dependencies.DependenciesSetup
) but now I am stuck at DependenciesSetup.bootstrapRefreshVersionsAndDependencies(gradle.settings)
which fails with "Cannot change the plugin resolution strategy after projects have been loaded." Most likely I painted myself into a corner here...mbonnin
06/06/2020, 1:38 PMlouiscad
07/02/2020, 9:52 AMNikky
07/02/2020, 1:15 PM{key}
for versions (eg: {react}
) or anything else that is not in maven versions usually
that would then lead to a entry version.react=1.2.3
that would probably not look for updates in maven
i find that in kotlin-js-wrappers for example the versions are built out of the versio nand the library they are wrapping,
would be cool to use "{react}-{js.wrappers}"
as version
or npm("react, "^{react}")
nkiesel
07/11/2020, 1:33 AMrefreshVersions
uses dependencies
internally to find the the available updates and uses that to re-write Versions.kt
. So unless you want to just see available updates, stick with refreshVersions
.Nikky
07/23/2020, 7:46 PMversion.ktor=
i wonder whats up with thatNikky
07/27/2020, 2:53 PMgroup:name
) on a repository.. true/false
but only on repos that have one defined.. and i needed to repimplement some classes because even the most basic stuff is internal or package private in gradle
technically i know which code is required to make listing work.. but its all inaccessible from outsideNikky
07/30/2020, 9:56 AMversion = "+"
, resolve them and then compare versions
at the very least this will always workNikky
08/15/2020, 10:15 PMcoroutine-core(-$platform)
for some reason ktor.client.websockets
is aliased to "$artifactPrefix-websockets-$native:_"
even on the jvm ? "io.ktor:ktor-client-websockets:_"
is what i would expect
also for some reason refreshVersion did not suggest 1.4.0
for version.kotlin even though its available in the reposNikky
08/19/2020, 9:17 AMbuildSrc
?
my usecase is that i need to apply jooq +postgres configurations for a lot of submodules,
would be nice to have that done in buildSrc but for that i need the versionslouiscad
08/20/2020, 12:27 PMAndroidX.emoji
AndroidX.emoji.appCompat
2️⃣:
AndroidX.emoji
AndroidX.emojiAppCompat
Telling why your prefer on or another choice in this thread can help too 🙂
FYI, the solution number two is the current ont, but please, don't base your choice on what's there currently in refreshVersions.Nikky
08/21/2020, 7:56 PMNikky
08/21/2020, 9:02 PMHarun
08/22/2020, 7:17 AMNikky
08/22/2020, 9:18 AMversions.properties
file of the outer project?
bootstrapRefreshVersions(
listOf(rootDir.parentFile.resolve("buildSrc/dependencies-rules.txt").readText()),
rootDir.parentFile.resolve("versions.properties")
)
Nikky
08/23/2020, 8:23 AMhttps://i.imgur.com/K54GoN5.png▾
https://i.imgur.com/KkS6SZe.png▾
Cannot resolve external dependency io.ktor:ktor-client-core:{require 1.4.0; reject _} because no repositories are defined.
Required by:
project :util:paste:pastee
project :util:paste:pastee > project :module:paste
Possible solution:
- Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
Nikky
08/23/2020, 8:39 AMplugin.com.squareup.sqldelight=version.sqldelight
...
version.sqldelight=1.5.0-SNAPSHOT
after running the task it changes into
plugin.com.squareup.sqldelight=1.5.0-SNAPSHOT
plugin.com.squareup.sqldelight=version.sqldelight
...
version.sqldelight=1.5.0-SNAPSHOT
Nikky
08/23/2020, 4:23 PMplugins {
id("com.gradle.enterprise") version "3.4.1"
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "<https://gradle.com/terms-of-service>"
termsOfServiceAgree = "yes"
}
}
it seems like a cleaner way to configure.. than importing a function, i assume that plugins there do not provide the same access ?Nikky
08/30/2020, 11:22 AMjmfayard
10/15/2020, 3:31 PMNikky
10/26/2020, 7:47 PMgcs://
urls (google cloud storage)Nikky
11/10/2020, 4:11 PMorg.gradle.api.tasks.TaskExecutionException: Execution failed for task ':refreshVersions'.
Caused by: java.lang.IllegalArgumentException: Cannot get version candidates with an empty fetchers list.
Nikky
11/10/2020, 5:14 PMdependencies {
classpath("com.android.tools.build:gradle:_")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:_")
}
instead of
plugins {
id("com.android.application")
id("com.android.library")
}
with pluginManagement ?
is that already a known issue ?Nikky
11/10/2020, 7:37 PMCaused by: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.toImmutableList()Ljava/util/stream/Collector;
at com.android.build.gradle.internal.TaskManager.<init>(TaskManager.java:371)
not sure if thats the cause.. or not but it is weirdNikky
11/11/2020, 12:37 PM