mirror of
https://gitcode.com/gh_mirrors/on/onvif.git
synced 2025-12-30 05:22:27 +00:00
60 lines
1.8 KiB
Groovy
60 lines
1.8 KiB
Groovy
/*
|
|
* This file was generated by the Gradle 'init' task.
|
|
*/
|
|
|
|
plugins {
|
|
// id 'org.onvif.java-conventions'
|
|
id 'java-library'
|
|
// id 'java'
|
|
// id("java-test-fixtures")
|
|
// id 'maven-publish'
|
|
id 'com.github.bjornvester.wsdl2java' version '2.0.2'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
url = uri("https://build.shibboleth.net/maven/releases/") // For implementation group: 'org.opensaml', name: 'opensaml-xacml-impl', version: '4.3.0'
|
|
// url = uri("https://company/com/maven2")
|
|
}
|
|
|
|
// uri = uri("https://build.shibboleth.net/maven/releases/org/opensaml/")
|
|
}
|
|
|
|
//sourceCompatibility = "1.8"
|
|
//targetCompatibility = "1.8"
|
|
|
|
dependencies {
|
|
implementation 'jakarta.jws:jakarta.jws-api:3.0.0'
|
|
|
|
implementation 'org.apache.commons:commons-lang3:3.17.0'
|
|
implementation "org.apache.cxf.xjc-utils:cxf-xjc-runtime:${project.property('cxfXjcRuntimeVersion')}"
|
|
implementation 'org.apache.maven:maven-model-builder:3.9.9'
|
|
}
|
|
|
|
processResources.dependsOn("compileJava")
|
|
|
|
clean {
|
|
delete("${layout.projectDirectory.dir('src/main/java/org')}")
|
|
delete("${layout.projectDirectory.dir('src/wsdl/resources/resources/main/classes')}")
|
|
}
|
|
|
|
wsdl2java {
|
|
// layout.buildDirectory = "${projectDir}/onvif-ws-client/src/main/resources/wsdl"
|
|
verbose.set(true)
|
|
suppressGeneratedDate.set(true)
|
|
options.set(["-wsdlLocation", "null", "-catalog", "${layout.projectDirectory.dir('src/main/resources/wsdl/jax-ws-catalog.xml')}"])
|
|
generatedSourceDir.set(layout.projectDirectory.dir("src/main/java"))
|
|
wsdlDir.set(layout.projectDirectory.dir("src/main/resources/wsdl"))
|
|
useJakarta.set(true)
|
|
cxfVersion.set(project.property('cxfVersion') as String)
|
|
}
|
|
|
|
description = 'onvif-ws-client'
|