I'm tryinging to create a plugin for intellij using gradle, I've followed jetbrains tutorial:
https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/prerequisites.html
and I get the following error:
Plugin [id: 'org.jetbrains.intellij', version: '0.3.9'] 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 'org.jetbrains.intellij:org.jetbrains.intellij.gradle.plugin:0.3.9')
Searched in the following repositories:
Gradle Central Plugin Repository
Taking a look at the gradle build file, there is the following lines:
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.3.9'
}
How do I find out what version of org.jetbrains.intellij I do have? How do I get 0.3.9?
My version of intellij is 2018.2.2 Community
Related
i used gradle to build my forge mod but i got these error
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'net.minecraftforge.gradle.forge', artifact: 'com.github.asbyth:ForgeGradle:ddb1eb0'] 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.github.asbyth:ForgeGradle:ddb1eb0')
Searched in the following repositories:
MavenRepo
Gradle Central Plugin Repository
maven(https://maven.minecraftforge.net/)
maven2(https://jitpack.io/)
maven3(https://repo.spongepowered.org/repository/maven-public/)
also, is it due to my country internet filtering ?
I'm currently trying to create a simple discord bot. I finished the code and I'm trying to export it through shadow--> shadowJar. I keep getting this error message:
Plugin [id: 'com.github.johnrengelman.shadow', version: '5.2.0'] 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.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:5.2.0')
Searched in the following repositories:
Gradle Central Plugin Repository
I've tried to look up how to fix this, being pretty unsuccessful. I'm very new to this, only having experience with simple Java, like multi-dimensional arrays, classes, objects, etc.
Please help!
Here's my build.gradle:
plugins {
id 'java'
id 'application'
id "com.github.johnrengelman.shadow" version "5.2.0"
}
mainClassName = "Main"
group 'com.mywebsite'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile 'net.dv8tion:JDA:3.5.0_329'
}
At the time of writing this answer, the shadow plugin's latest version is 2.0.3.
So I have no idea where you sourced that 5.2.0 from but this is the issue: there is no shadow plugin version 5.2.0 out there.
I'm trying to configure meecrowave gradle plugin according to this documentation:
This is my script:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.apache.meecrowave:meecrowave-gradle-plugin:1.2.6"
}
}
plugins {
id 'java'
id 'org.apache.meecrowave.meecrowave'
}
meecrowave {
httpPort = 9090
}
I'm getting this error message:
Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-5.0-bin.zip'.
Build file '/home/jcabre/projectes/digital/espaidoc/security/build.gradle' line: 12
Plugin [id: 'org.apache.meecrowave.meecrowave'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this source)
Plugin [id: 'org.apache.meecrowave.meecrowave'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this source)
I've also tried with:ยด
plugins {
id 'java'
id 'org.apache.meecrowave.meecrowave' version '1.2.6'
}
Then I get this message:
Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-5.0-bin.zip'.
Build file '/home/jcabre/projectes/digital/espaidoc/security/build.gradle' line: 12
Plugin [id: 'org.apache.meecrowave.meecrowave', version: '1.2.6'] 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 'org.apache.meecrowave.meecrowave:org.apache.meecrowave.meecrowave.gradle.plugin:1.2.6')
Searched in the following repositories:
Gradle Central Plugin Repository
Plugin [id: 'org.apache.meecrowave.meecrowave', version: '1.2.6'] 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 'org.apache.meecrowave.meecrowave:org.apache.meecrowave.meecrowave.gradle.plugin:1.2.6')
Searched in the following repositories:
Gradle Central Plugin Repository
PARENT GRADLE
plugins {
id "base"
id 'com.github.spotbugs' version '1.6.8' apply false
id 'io.franzbecker.gradle-lombok' version '2.0' apply false
id 'fish.payara.micro-gradle-plugin' version '1.0.0' apply false
}
apply from: "$projectDir/gradle/java.gradle"
apply from: "$projectDir/gradle/spotbugs.gradle"
apply from: "$projectDir/gradle/checkstyle.gradle"
apply from: "$projectDir/gradle/pmd.gradle"
apply from: "$projectDir/gradle/jacoco.gradle"
apply from: "$projectDir/gradle/repositories.gradle"
apply from: "$projectDir/gradle/payara.gradle"
The problem is that this plugin is not published to the official Gradle plugins portail , so you cannot use plugins {} DSL (or you need to configure the pluginManagement.resolutionStrategy, see enter link description here )
The other problem is that the documentation you mentioned is not up-to-date !
The plugin ID has been changed to org.apache.microwave.microwave
Easiest way to apply this plugin:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.apache.meecrowave:meecrowave-gradle-plugin:1.2.6"
}
}
// use "new" plugin ID
apply plugin: "org.apache.microwave.microwave"
// or use directly PLugin class
//apply plugin: org.apache.meecrowave.gradle.MeecrowavePlugin
EDIT see Romain's answer for more accurate details about this issue.
just to let you know that the plugin id issue was not a "renaming" but a forgotten renaming (originally meecrowave was named microwave before joining openwebbeans project).
I fixed the plugin id in https://issues.apache.org/jira/browse/MEECROWAVE-186 and updated the doc to reflect that. Note that the doc is not in the sources itself but online at http://openwebbeans.apache.org/meecrowave/meecrowave-gradle/index.html.
Romain
When I tried to refresh Gradle project , I encountered this error:
Plugin [id: 'org.jetbrains.kotlin.jvm'] was not found in any of the following sources:
Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
Plugin Repositories (plugin dependency must include a version number for this source)
How to solve this issue?
You just forgot to specify the plugin version, which is mandatory for "not Core" plugins:
For example :
plugins {
application
kotlin("jvm") version "1.3.10"
}
See:
https://kotlinlang.org/docs/reference/using-gradle.html
https://docs.gradle.org/current/javadoc/org/gradle/plugin/use/PluginDependenciesSpec.html
I change version of the flyway gradle plugin from 3.2 to 4.0
plugins {
id "org.flywaydb.flyway" version "4.0"
}
And give a build error
Error:(10, 0) Plugin [id: 'org.flywaydb.flyway', version: '4.0'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Gradle Central Plugin Repository (plugin 'org.flywaydb.flyway' has no version '4.0' - see https://plugins.gradle.org/plugin/org.flywaydb.flyway for available versions)
The gradle plugin for flyway has not yet been published for version 4.0. For more information see this issue in the issue tracker.