diesieben07
01/09/2020, 11:25 PMplugins
block (even without a version, huh?), but the plugin does not seem to be published to the Gradle plugins maven... Even adding mavenCentral to the plugins repositories does not help, even though the plugin seems to be published there.diesieben07
01/09/2020, 11:25 PMplugins {
kotlin("jvm") version "1.3.61"
id("com.squareup.wire") version "3.0.3"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
The error output:
FAILURE: Build failed with an exception.
* Where:
Build file 'E:\code\wireTest\build.gradle.kts' line: 1
* What went wrong:
Plugin [id: 'com.squareup.wire', version: '3.0.3'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.squareup.wire:com.squareup.wire.gradle.plugin:3.0.3')
Searched in the following repositories:
Gradle Central Plugin Repository
MavenRepo
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
diesieben07
01/09/2020, 11:26 PMDominaezzz
01/09/2020, 11:41 PMsettings.gradle.kts
.
pluginManagement {
repositories {
jcenter()
mavenCentral()
maven("<https://plugins.gradle.org/m2/>")
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "com.squareup.wire") {
useModule("com.squareup.wire:wire-gradle-plugin:${requested.version}")
}
}
}
}
diesieben07
01/09/2020, 11:43 PMDominaezzz
01/09/2020, 11:44 PMplugins
block is fairly limited out of the box.diesieben07
01/09/2020, 11:44 PMgildor
02/18/2020, 3:01 PM