Я пытаюсь собрать build.gradle в автономном режиме со всеми плагинами и библиотеками, загруженными на мой локальный компьютер.
Плагины загружаются в папку C:/Users/dd/Documents/cots_lib_gradleplugs.
buildscript {
// Define the absolute path or the correct relative path for offline access
// We will stick to the relative path as defined by 'repoDir'
def repoDir1 = "C:/Users/dd/Documents"
repositories {
// Must declare a repository for Gradle to find plugins, even if we supply files directly.
// It's safer to ensure this flatDir is present and correct.
flatDir {
dirs "${repoDir1}/cots_lib/gradleplugs"
}
}
dependencies {
// Providing the JARs directly to the classpath
classpath files(
"${repoDir1}/cots_lib/gradleplugs/spring-boot-3.5.3.jar",
"${repoDir1}/cots_lib/gradleplugs/dependency-management-plugin-1.1.7.jar"
)
}
}
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.gradle.dependencymanagement'
apply plugin: 'java'
apply plugin: 'war'
def profile = "devapidev1"
group = 'chs
version = '0.0.1-SNAPSHOT'
def useMavenCentral = false
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
def repoDir = "../../"
Однако, когда я запускаю это, я получаю следующую ошибку:
PS C:\Users\dd\Documents\api\api> ./gradlew build --offline
[Incubating] Problems report is available at: file:///C:/Users/dd/Documents/api/api/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* Where:
Build file C:\Users\dd\Documents\api\api\build.gradle line: 90
* What went wrong:
A problem occurred evaluating root project 'api'.
> Plugin with id 'org.springframework.boot' not found.
Подробнее здесь: https://stackoverflow.com/questions/798 ... ng-plug-in
Собрать в автономном режиме с помощью gradle, но отсутствует плагин ⇐ JAVA
Программисты JAVA общаются здесь
-
Anonymous
1761844812
Anonymous
Я пытаюсь собрать build.gradle в автономном режиме со всеми плагинами и библиотеками, загруженными на мой локальный компьютер.
Плагины загружаются в папку C:/Users/dd/Documents/cots_lib_gradleplugs.
buildscript {
// Define the absolute path or the correct relative path for offline access
// We will stick to the relative path as defined by 'repoDir'
def repoDir1 = "C:/Users/dd/Documents"
repositories {
// Must declare a repository for Gradle to find plugins, even if we supply files directly.
// It's safer to ensure this flatDir is present and correct.
flatDir {
dirs "${repoDir1}/cots_lib/gradleplugs"
}
}
dependencies {
// Providing the JARs directly to the classpath
classpath files(
"${repoDir1}/cots_lib/gradleplugs/spring-boot-3.5.3.jar",
"${repoDir1}/cots_lib/gradleplugs/dependency-management-plugin-1.1.7.jar"
)
}
}
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.gradle.dependencymanagement'
apply plugin: 'java'
apply plugin: 'war'
def profile = "devapidev1"
group = 'chs
version = '0.0.1-SNAPSHOT'
def useMavenCentral = false
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
def repoDir = "../../"
Однако, когда я запускаю это, я получаю следующую ошибку:
PS C:\Users\dd\Documents\api\api> ./gradlew build --offline
[Incubating] Problems report is available at: file:///C:/Users/dd/Documents/api/api/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* Where:
Build file C:\Users\dd\Documents\api\api\build.gradle line: 90
* What went wrong:
A problem occurred evaluating root project 'api'.
> Plugin with id 'org.springframework.boot' not found.
Подробнее здесь: [url]https://stackoverflow.com/questions/79804942/build-offline-using-gradle-but-missing-plug-in[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия