4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Gradle plugins.idとbuildscript.dependencies.classpathの関連性

Last updated at Posted at 2021-04-17

定期的に気になるのですが、まとめないと毎回調べることになるので、まとめておきます。

plugins { 
  id("org.jetbrains.compose") version "0.1.0-m1-build62" 
}

がmavenのbuildscript.dependencies.classpath org.jetbrains.compose:compose-gradle-plugin:0.1.0-m1-build62になぜ紐づくのか?ということです。

教えていただけたのがこちらですね。
https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_markers

${plugin.id}:${plugin.id}.gradle.plugin:${plugin.version}
という規則で変換するようです。

org.jetbrains.composeは

org.jetbrains.compose:org.jetbrains.compose.gradle.plugin:0.1.0-m1-build62
になって
URLのパスとしては

group: org/jetbrains/compose
name: org.jetbrains.compose.gradle.plugin
version: 0.1.0-m1-build62
なので以下のようになるようです。
https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/compose/org.jetbrains.compose.gradle.plugin/0.1.0-m1-build62/org.jetbrains.compose.gradle.plugin-0.1.0-m1-build62.pom

でこのアーティファクトが org.jetbrains.compose:compose-gradle-plugin:0.1.0-m1-build62 に依存しているという感じで動くみたいです。

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?