Caused by: groovy.lang.MissingPropertyException: Could not set unknown property 'maven' for object of type org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig$Repository. #806
Labels
question
Further information is requested
Hi team,
I'm working on a project using Java 11, Gradle 7.5, and trying to build my project :
Caused by: groovy.lang.MissingPropertyException: Could not set unknown property 'maven' for object of type org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig$Repository.
================
this is my gradle build
buildscript {
repositories {
maven {
url "${artifactory_contextUrl}"
credentials {
username = "${artifactory_user}"
password = "${artifactory_password}"
println "username=${artifactory_user}"
println "password=${artifactory_password}"
}
}
}
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:latest.release"
}
}
plugins {
id 'org.springframework.boot' version '2.7.3'
id 'io.spring.dependency-management' version '1.0.13.RELEASE'
id 'java'
id "com.jfrog.artifactory" version "4.4.18"
}
apply plugin: "com.jfrog.artifactory"
apply plugin: 'maven-publish'
group = 'com.navaera'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
maven {
url "${artifactory_contextUrl}"
credentials {
username = "${artifactory_user}"
password = "${artifactory_password}"
println "username=${artifactory_user}"
println "password=${artifactory_password}"
}
}
mavenCentral()
}
artifactory {
contextUrl = "${artifactory_contextUrl}"
publish {
repository {
repoKey = "local_repository"
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
defaults {
publications('mavenJava')
publishArtifacts = true
}
}
resolve {
repository {
repoKey = 'virtual_repository'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
dependencies {
// implementation files('repo/SwiftTranslator.jar')
implementation files('repo/encryption_decryption.jar')
implementation files('repo/distribution-4.0.1.jar')
implementation files('repo/acknowledgement.jar')
implementation 'com.prowidesoftware:pw-iso20022:SRU2021-9.2.6'
implementation ('net.java.dev.stax-utils:stax-utils:20070216'){
exclude module: 'jsr173-ri'
}
}
tasks.named('test') {
useJUnitPlatform()
}
configurations {
all {
exclude group: 'org.codehaus', module: 'xfire-core'
exclude group: 'xml-apis'
exclude group: 'com.bea.xml' , module: 'jsr173-ri'
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
exclude group: 'stax', module: 'stax-api'
resolutionStrategy {
force 'commons-logging:commons-logging:1.0.4'
force 'org.springframework:spring:1.2.6'
force 'javax.activation:activation:1.1'
force 'org.jvnet.staxex:stax-ex:1.8.3'
force 'com.ibm.icu:icu4j:56.2'
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
processResources {
from ('src/main/java') {
exclude '/*.properties'
include '/.jks'
include '**/.conf'
include '/*.png'
include '/*.jasper'
}
}
bootJar {
exclude('.xml')
exclude('.properties')
}
The text was updated successfully, but these errors were encountered: