Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle DSL 与 Gradle Kotlin DSL的问题 #26

Open
xbaimiao opened this issue Oct 21, 2021 · 0 comments
Open

Gradle DSL 与 Gradle Kotlin DSL的问题 #26

xbaimiao opened this issue Oct 21, 2021 · 0 comments

Comments

@xbaimiao
Copy link

Gradle DSL代码如下:

plugins {
    id 'java'
    id 'org.jetbrains.kotlin.jvm' version '1.5.10'
    id 'maven'
}

Gradle Kotlin DSL代码如下:

plugins {
    java
    id("maven")
    id("org.jetbrains.kotlin.jvm") version "1.5.10"
}

Gradle DSL可正常使用maven插件
但Gradle Kotlin DSL报错

org.gradle.internal.exceptions.LocationAwareException: Build file 'E:\SCT-Pay-SDK\build.gradle.kts' line: 1
Plugin [id: 'maven'] was not found in any of the following sources:
- Gradle Core Plugins (not a core plugin, please see https://docs.gradle.org/7.0.2/userguide/standard_plugins.html for available core plugins)
- Plugin Repositories (plugin dependency must include a version number for this source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant