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

Caused by: groovy.lang.MissingPropertyException: Could not set unknown property 'maven' for object of type org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig$Repository. #806

Open
muduliashutosh opened this issue Sep 26, 2024 · 0 comments
Labels
question Further information is requested

Comments

@muduliashutosh
Copy link

muduliashutosh commented Sep 26, 2024

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 'org.springframework.boot:spring-boot-starter-quartz'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter'

implementation   'com.microsoft.sqlserver:mssql-jdbc:8.2.1.jre11'

implementation  'org.apache.commons:commons-lang3:3.11'
implementation  'commons-io:commons-io:2.6'
implementation  'org.apache.commons:commons-email:1.2'
implementation  'org.apache.commons:commons-csv:1.7'
implementation  'commons-codec:commons-codec:1.9'
implementation  'com.opencsv:opencsv:4.4'
implementation  'jakarta.xml.bind:jakarta.xml.bind-api:3.0.0'
implementation 'com.sun.xml.bind:jaxb-core:3.0.0'
implementation 'com.sun.xml.bind:jaxb-impl:3.0.0'
implementation 'org.apache.poi:poi-ooxml:3.17'
	
implementation   'net.lingala.zip4j:zip4j:2.6.4'

//implementation 'org.bouncycastle:bcprov-jdk15on:1.67'
//implementation 'org.bouncycastle:bcprov-jdk15on:1.67'
implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
implementation group: 'org.bouncycastle', name: 'bcpg-jdk15on', version: '1.67'
implementation ('net.java.dev.stax-utils:stax-utils:20070216') {
	exclude module: 'com.bea.xml',  group: 'jsr173-ri'
}
implementation  group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
implementation ('com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.12.3'){
        exclude group: 'com.fasterxml.jackson.core', module :'jackson-databind'
        exclude group: 'com.fasterxml.jackson.core', module :'jackson-core'
        exclude group: 'com.fasterxml.jackson.core', module :'jackson-annotations'
}
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.2'

implementation ('org.codehaus.xfire:xfire-core:1.2.6'){
  exclude group: 'org.apache.ws.commons:XmlSchema:1.1'
  exclude group: 'org.springframework'
}

implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0'
implementation 'commons-lang:commons-lang:2.6'
implementation 'org.bouncycastle:bcprov-jdk15on:1.67'
implementation 'ch.qos.logback:logback-core:1.2.3'
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'org.slf4j:slf4j-api:1.7.30'

// 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'
}

implementation ('org.codehaus.xfire:xfire-ws-security:1.2.6'){
  exclude module: 'bcprov-jdk15'
}

implementation 'org.codehaus.xfire:xfire-aegis:1.2.6'

implementation 'org.apache.ws.security:wss4j:1.5.8'

implementation  group: 'xml-security', name: 'xmlsec', version: '1.3.0'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:3.0.0'

implementation  files('repo/jakarta.xml.bind-api-2.3.3.jar')
//implementation files('repo/pw-swift-core-SRU2019-8.0.2.jar')
implementation 'org.apache.commons:commons-compress:1.20'
 
implementation group: 'javax.activation', name: 'activation', version: '1.1'
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.4.0-b180830.0359'
implementation group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '2.4.0-b180830.0438'


implementation group: 'log4j', name: 'log4j', version: '1.2.17'    
implementation 'com.navaera.deflator:Deflator:0.0.2'
implementation 'com.navaera.acknowledgement:acknowledgement:1.0.1'
implementation group: 'com.ibm.icu', name: 'icu4j', version: '69.1'

implementation 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3'
implementation  'io.netty:netty-all:4.1.62.Final'
implementation 'com.nimbusds:nimbus-jose-jwt:2.10.1'
//implementation 'com.navaera.encryption_decryption:0.0.1'
//implementation 'com.navavera.SwiftTranslator:1.0.0'
//implementation 'com.navaera.distribution:distribution:0.0.1'
implementation  files('repo/SwiftTranslator.jar')
implementation  files('repo/jpostal.jar')
implementation  files('repo/NavaeraUtil-0.0.1.jar')

}

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')
}

@muduliashutosh muduliashutosh added the question Further information is requested label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant