Добрый день.
При запуске проекта выдает ошибку, что не может найти плагин allure.
plugins {
id "io.qameta.allure" version "2.8.1"
id "java-library"
id "base"
}
repositories {
mavenLocal()
maven { url 'http://tc.company.local:8080/nexus/content/groups/public' }
mavenCentral()
}
dependencies {
compile "org.seleniumhq.selenium:selenium-java:3.14.0"
compile "org.testng:testng:7.0.0"
compile "org.postgresql:postgresql:42.2.5"
agent "org.aspectj:aspectjweaver:1.9.6"
compile group: 'io.qameta.allure', name: 'allure-testng', version: '2.13.6'
compile 'com.oracle:ojdbc8:12.2.0.1'
compile group: 'org.apache.poi', name: 'poi', version: '4.1.0'
compile group: 'org.reflections', name: 'reflections', version: '0.9.10'
compile "com.google.code.gson:gson:2.3.1"
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.1'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.12.1'
implementation group: 'commons-io', name: 'commons-io', version: '2.6'
}
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
allure {
version = '2.7.0'
aspectjweaver = true
autoconfigure = true
resultsDir = file('allure-results')
reportDir = file('allure-report')
downloadLink = 'https://github.com/allure-framework/allure2/releases/download/2.7.0/allure-2.7.0.zip'
}
Текст ошибки.
* What went wrong:
Plugin [id: 'io.qameta.allure', version: '2.8.1'] 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 'io.qameta.allure:io.qameta.allure.gradle.plugin:2.8.1')
Searched in the following repositories:
Gradle Central Plugin Repository
MavenRepo
BintrayJCenter
Пробовал разные jdk от 9 до последней (9, 11, 13, 15, 16, 17)
Пробовал подключать плагин Gradle dependencies and plugins helper в Settings.
На других машинах проект работает.