Stephan Schroeder
06/26/2019, 3:35 PMtasks {
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
}
but the mavenJava
is red 😔 with unresolved reference: mavenJava
. I assume I should have been included by this but didn’t
plugins {
id("java")
`maven-publish`
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components.java)
}
}
}
The issue now is that the java-part of components.java
is unresolved. According to the docu it should have been added by the java-Plugin, but maybe it’s accessed differently from Kotlin??
https://docs.gradle.org/current/dsl/org.gradle.api.publish.maven.MavenPublication.html#org.gradle.api.publish.maven.MavenPublication:from(org.gradle.api.component.SoftwareComponent)