Comments (7)
add this to your setting.gradle(.kts)
pluginManagement {
repositories {
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
val module = when(requested.id.id) {
"kotlinx-atomicfu" -> "org.jetbrains.kotlinx:atomicfu-gradle-plugin:${requested.version}"
else -> null
}
if(module != null) {
useModule(module)
}
}
}
}
it can bridge it .. but having it published properly as a gradle plugin would make this easier to use and integrate better with version management plguins like refresVersions
https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html
from kotlinx-atomicfu.
well this is what we needed.. https://plugins.gradle.org/plugin/org.jetbrains.kotlin.plugin.atomicfu
maybe update the README to show how to apply the plugin ?
then this issue can be closed as far as i am concerned...
from kotlinx-atomicfu.
Any potential error or naming with the new not-in-readme plugin?
Trying to use the plugin dsl
plugins {
id("org.jetbrains.kotlin.plugin.atomicfu") version "1.8.20"
}
The plugin resolved but
import kotlinx.atomicfu.atomic
would have a Unresolved reference: atomicfu
Error and upon checking External Libraries
I couldn't find any relating to atomicfu
When I switch back to the legacy plugin
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.20.1")
}
}
apply(plugin = "kotlinx-atomicfu")
The org.jetbrains.kotlinx:atomicfu-jvm:0.20.1
would show up and correctly added.
from kotlinx-atomicfu.
when would we published to the Gradle Plugin Portal? I'd really like the simplified plugin
grammar
from kotlinx-atomicfu.
@NikkyAI do we still need to do it? I've just added the plugin via id("kotlinx-atomicfu")
then updated the buildscript
block with:
buildscript {
dependencies {
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.20.0")
}
}
and everything seems to work, although I cannot find the kotlin-atomicfu
plugin on the Gradle Plugin Portal, but there's org.jetbrains.kotlin.plugin.atomicfu
with the latest version of 1.8.20-RC
UPDATE
It works if I add the plugin to the subproject, but fails if I do it in the top level build.gradle
from kotlinx-atomicfu.
It seems org.jetbrains.kotlin.plugin.atomicfu
is not a new publication but a new plugin. The experimental one or a replacement for currently mentioned in the documentation. I'd actually prefer to try it instead of current stable. Does anyone know what is its status and is it even working?
from kotlinx-atomicfu.
It seems
org.jetbrains.kotlin.plugin.atomicfu
is not a new publication but a new plugin. Does anyone know what is its status and is it even working?
I am applying it in my settings.gradle
:
id 'org.jetbrains.kotlin.plugin.atomicfu' version '1.9.22' apply false
And when I apply it in a non-root project:
plugins {
id 'org.jetbrains.kotlin.multiplatform'
id 'org.jetbrains.kotlin.plugin.atomicfu'
}
nothing at all happens so far as I can tell.
from kotlinx-atomicfu.
Related Issues (20)
- ReentrantLock errors in native source set with Kotlin 2.0.0-Beta3 HOT 3
- Tidy up our build setup HOT 1
- atomicfu-gradle-plugin does not configure dependencies, when it applied in a non-root build sript. HOT 2
- Add boxed atomics HOT 6
- Get and apply atomicfu compiler plugin of Kotlin compiler version (not the KGP version)
- Improve README to clarify components of atomicfu HOT 1
- Native SynchronizedObject implementation allocates too much HOT 2
- AtomicInt minusAssign not found HOT 2
- Deprecate minusAssign/plusAssign operators from public API HOT 3
- Pass Kotlin version as a parameter to the projects from integration-testing
- Refactoring build scripts HOT 1
- KotlinFrontEndException: Exception while analyzing expression
- Remove JS Legacy transformer
- Enable JVM and Native IR transformations by default
- Wrong return types for lowered extension functions
- Incorrect initialization order of delegated properties
- Compilation hangs on a long string concatenation
- K/N compiler plugin generates IrGetField from another file
- Turn off by default / remove JS IR transformations HOT 1
- SynchronizedObject for kotlin/native HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlinx-atomicfu.