"CreateProcess error=206, 文件名或扩展名太长。",用gradle构建项目创建mapper文件时提示这个错误,是Windows Gradle长类路径问题,官方已经修复
用gradle构建项目mapper文件时,提示这个错误,这个是Windows Gradle长类路径问题, gradle官方已经解决了这个问题。
官网给出的解决方法地址:https://plugins.gradle.org/plugin/ua.eshepelyuk.ManifestClasspath
Using the plugins DSL:
plugins {
id "ua.eshepelyuk.ManifestClasspath" version "1.0.0"
}
Using legacy plugin application:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.ua.eshepelyuk:ManifestClasspath:1.0.0"
}
}
apply plugin: "ua.eshepelyuk.ManifestClasspath"