Nikky
12/06/2020, 4:52 PMplugins {
id("de.fayard.refreshVersions")
}
// workaround for <https://github.com/jmfayard/refreshVersions/issues/265>
@OptIn(de.fayard.refreshVersions.core.internal.InternalRefreshVersionsApi::class)
val versionsMap = de.fayard.refreshVersions.core.internal.RefreshVersionsConfigHolder.readVersionProperties()
kotlinCompilerVersion = versionsMap["version.kotlin"]
Nikky
12/06/2020, 4:54 PMRafs
12/28/2020, 10:32 AMJohan Reitan
01/20/2021, 8:37 AMandroidx.compose.*:*
^^^^^^^^^^^^^^^^
androidx.paging:paging-compose
^^^^^^^^^^^^^^^. ^^^^^^^
com.google.dagger:hilt-compiler
^^^^^^^^^^^^^.^^^^
Note that the last entry with the hilt-compiler
is working fine, which indicates to me that I've set this up correctly.
When I run gradle sync or refreshVersions, I get this in my `versions.properties`:
version.androidx.compose.foundation=1.0.0-alpha10
version.androidx.compose.material=1.0.0-alpha10
version.androidx.compose.runtime=1.0.0-alpha10
version.androidx.compose.ui=1.0.0-alpha10
version.androidx.paging=2.1.2
But I was expecting this:
version.androidx.compose=1.0.0-alpha10
version.androidx.paging=2.1.2
version.androidx.paging.compose=1.0.0-alpha05
Is there something wrong with my androidx rules, or do they conflict with the built-in ones maybe? Or have I misunderstood this feature completely? 😅gvetri
01/22/2021, 3:37 PMgammax
01/22/2021, 9:37 PMelect
02/07/2021, 11:00 AMimplementation("org.koin:koin-core")
, have you considered something like this?
Edit: just saw this is actually resolving anyway, but I have no idea how..elect
02/07/2021, 11:01 AMimplementation(Square.okHttp3.loggingInterceptor)
implementation(Square.okHttp3.mockWebServer)
implementation(Square.okHttp3.okHttp)
implementation(Square.retrofit2.converter.moshi)
implementation(Square.retrofit2.retrofit)
just implementation(Square.coreSet)
or something similarelect
02/07/2021, 11:07 AMmigrateToRefreshVersionsDependenciesConstants
task to port the pom linked above?SimonT
02/12/2021, 9:01 PMdave
02/20/2021, 10:04 AMNikky
03/16/2021, 1:21 AMNikky
03/25/2021, 9:38 AMCentralized dependency versions
in gradle 7.x + looks interesting.. i am guessing refreshVersions will integrate into that?
https://docs.gradle.org/7.0-rc-1/release-notes.htmlSimonT
03/29/2021, 1:27 PMconst val hilt_android: String = "com.google.dagger:hilt-android:" + Versions.com_google_dagger
const val hilt_android_compiler: String = "com.google.dagger:hilt-android-compiler:" +
Versions.com_google_dagger
const val hilt_android_gradle_plugin: String = "com.google.dagger:hilt-android-gradle-plugin:" +
Versions.com_google_dagger
const val hilt_android_testing: String = "com.google.dagger:hilt-android-testing:" +
Versions.com_google_dagger
const val hilt_compiler: String = "androidx.hilt:hilt-compiler:" + Versions.androidx_hilt
const val hilt_lifecycle_viewmodel: String = "androidx.hilt:hilt-lifecycle-viewmodel:" +
Versions.androidx_hilt
const val com_google_dagger: String = "2.28.1-alpha"
const val androidx_hilt: String = "1.0.0-alpha01"
SimonT
03/29/2021, 1:29 PMpgreze
04/22/2021, 1:46 AMpgreze
04/22/2021, 5:32 AMgenerate the versions.properties for all dependencies used in the project
, and just let me edit files without assistance?dave08
04/28/2021, 9:46 AMjmfayard
05/07/2021, 8:13 AMdave
05/07/2021, 8:14 AM* Where:
Settings file '/Users/david/dev/misc/refreshVersions/sample-multi-modules/settings.gradle.kts' line: 16
* What went wrong:
An exception occurred applying plugin request [id: 'de.fayard.refreshVersions', version: '0.9.7']
> Failed to apply plugin 'de.fayard.refreshVersions'.
> class org.gradle.initialization.DefaultSettings_Decorated cannot be cast to class org.gradle.api.Project (org.gradle.initialization.DefaultSettings_Decorated and org.gradle.api.Project are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @5b275dab)
dave08
05/13/2021, 9:18 AM_
be used there too as a version and be managed by refreshVersions?Nikky
05/13/2021, 3:18 PMFeatureFlag
were accessible from within the FeatureFlagExtension
somehow.. so that there is no imports needed
getting idea to parse the configuration initially.. to even get the IDE to help was a bit more challenging because of that missing import
but i guess i am nitpickinglouiscad
05/14/2021, 10:42 AMJon Miller
05/16/2021, 5:39 PMpgreze
05/17/2021, 7:22 AMbuildSrc/settings.gradle.kts
but it just didn’t work, whatever the expected behavior.
I ended-up with this file in declaration in `buildSrc/settings.gradle.kts`:
val versions = loadProperties(projectDir.resolve("../versions.properties").toString())
dependencies {
val refVerImpl: (String, String) -> Unit = { artifact, version ->
implementation("$artifact:${versions["version.$version"]}")
}
// ...
refVerImpl("com.github.triplet.gradle:play-publisher", "com.github.triplet.gradle..play-publisher")
}
and in the root `build.gradle.kts`:
@Suppress("GradlePluginVersion") buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
dependencies { // Allowing to populate versions.properties with buildSrc dependencies
classpath("com.android.tools.build:gradle:_")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:_")
classpath("com.github.triplet.gradle:play-publisher:_")
}
}
Is there a better alternative approach I could use for buildSrc dependencies?knthmn
06/03/2021, 4:33 AMCannot get version candidates with an empty fetchers list.
Details in threaddave08
06/03/2021, 12:10 PM_
for the gradle android plugin version, AS makes me insert @Suppress("GradlePluginVersion")
and still shows it as red... how can I get rid of the warning?Nikky
06/07/2021, 12:15 PMversionsFile
and such
before it would overwrite and the parent would write to the included oneNikky
06/08/2021, 7:47 AMbootstrap
for the buildSrc., succeeds and then calls it again
and that somehow happens in a context where the config holder has no configs
i tried just not removing them , intentionally leaking i guess.. but that did not fix it either.. so i think it executes it in a seperate classpathNikky
06/08/2021, 12:03 PMversionFor
to add Project
as a receiver in groovy code without changes to usages ?
or some way to extract which buildscript the call came from with reflection ?Nikky
06/08/2021, 12:03 PMversionFor
to add Project
as a receiver in groovy code without changes to usages ?
or some way to extract which buildscript the call came from with reflection ?louiscad
06/08/2021, 12:28 PMNikky
06/08/2021, 1:12 PMbuild.gradle
file@Deprecated
wit ha proper ReplaceWith
might be enoughlouiscad
06/08/2021, 1:13 PMWait, there's a way to have receiver syntax in Groovy DSL?
Nikky
06/08/2021, 1:14 PMlouiscad
06/08/2021, 1:14 PMNikky
06/08/2021, 1:15 PMAn extension module is a JAR file with classes that provide extra methods to existing other classes like in the JDK or third-party libraries. Groovy uses this mechanism to add for example extra methods to theso.. if we set this up right.. maybe we can provideclass.File
versionFor
extensions on Project
louiscad
06/08/2021, 1:17 PMNikky
06/08/2021, 1:18 PM0.10.0
groovy buildscripts