I am about to setup a new Gradle project in Intellij Idea. But I am alrady failing at loading dependencies. This is my gradle file:
plugins {
id 'java'
}
group 'ch.demo'
version '7.4.5.0'
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.google.gwt', name: 'gwt', version: '2.9.0'
}
If I execute this gradle script, I get the error 'Could not resolve com.google.gwt:gwt:2.9.0.'
The maven module should be correct, it's available here: https://repo.maven.apache.org/maven2/com/google/gwt/gwt/2.9.0/
It seems I am doing something wrong. Does anyone know how to solve this?
Also tried compile 'com.google.gwt:gwt:2.9.0'
but that didn't work either.
Edit:
I used the command "Reimport all Gradle Projects" so far. If I press "Execute Gradle Task" -> "gradle build", I get the following error:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve com.google.gwt:gwt:2.9.0.
Required by:
project :
> Could not resolve com.google.gwt:gwt:2.9.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/google/gwt/gwt/2.9.0/gwt-2.9.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/google/gwt/gwt/2.9.0/gwt-2.9.0.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target