GithubHelp home page GithubHelp logo

Comments (7)

NikkyAI avatar NikkyAI commented on July 20, 2024 3

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.

NikkyAI avatar NikkyAI commented on July 20, 2024 3

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.

evilcat-x avatar evilcat-x commented on July 20, 2024 1

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.

revintec avatar revintec commented on July 20, 2024

when would we published to the Gradle Plugin Portal? I'd really like the simplified plugin grammar

from kotlinx-atomicfu.

volo-droid avatar volo-droid commented on July 20, 2024

@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.

vdshb avatar vdshb commented on July 20, 2024

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.

nedtwigg avatar nedtwigg commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.