的结果gradle build
项目结构
这是我的 build.gradle
plugins {
id 'scala'
id 'org.gradle.playframework' version '0.9'
id "org.openapi.generator" version "5.0.0-beta"
id 'maven-publish'
id 'java-base'
id "com.github.johnrengelman.shadow" version "6.0.0"
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://repo1.maven.org/maven2" }
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url "https://oss.sonatype.org/content/repositories/releases/"
}
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven {
name "lightbend-maven-release"
url "https://repo.lightbend.com/lightbend/maven-releases"
}
ivy {
name "lightbend-ivy-release"
url "https://repo.lightbend.com/lightbend/ivy-releases"
layout "ivy"
}
}
dependencies {
// Use Scala 2.12 in our library project
implementation 'org.scala-lang:scala-library:2.12.8'
// Use Scalatest for testing our library
testImplementation 'junit:junit:4.12'
testImplementation 'org.scalatest:scalatest_2.12:3.0.8'
// Need scala-xml at test runtime
testRuntimeOnly 'org.scala-lang.modules:scala-xml_2.12:1.2.0'
}
group 'com.project.integration-service.lib'
version '1.0-SNAPSHOT'
我错过了什么?我已经手动检查了生成的 JAR 文件,但我的库不存在。
我需要在不同的项目中使用 JAR,但我不能这样做,因为我无法让插件工作。
我认为“NO-SOURCE”意味着它找不到我的根目录。
这是我的项目结构: