Last active
July 4, 2016 08:26
-
-
Save mertvetsky/7f52ee6f32cc5a55574604738c04de8c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
ext.kotlin_version = "1.0.1-2" | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
} | |
} | |
configurations { | |
axisGenAntTask | |
} | |
apply plugin: "idea" | |
apply plugin: "kotlin" | |
apply plugin: "application" | |
mainClassName = "HelloWorldKt" | |
defaultTasks "run" | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
axisGenAntTask "org.apache.axis:axis-ant:1.4", | |
"org.apache.axis:axis:1.4", | |
"org.apache.axis:axis-jaxrpc:1.4", | |
"axis:axis-wsdl4j:1.5.1", | |
"commons-codec:commons-codec:1.3", | |
"commons-logging:commons-logging:1.1.1", | |
"commons-discovery:commons-discovery:0.2" | |
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version", | |
"org.apache.axis:axis-ant:1.4", | |
"org.apache.axis:axis:1.4", | |
"org.apache.axis:axis-jaxrpc:1.4", | |
"axis:axis-wsdl4j:1.5.1", | |
"commons-codec:commons-codec:1.3", | |
"commons-logging:commons-logging:1.1.1", | |
"commons-discovery:commons-discovery:0.2", | |
"javax.activation:activation:1.1.1", | |
"javax.mail:mail:1.4" | |
testCompile "junit:junit:4.11", | |
"org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" | |
} | |
task wsdl2java(type: JavaExec) { | |
classpath = fileTree(dir: "src/main/java") | |
main = "org.apache.axis.wsdl.WSDL2Java" | |
args = ["https://partner.r01.ru:1443/partner_api.khtml?wsdl", | |
"-o", "src/main/resources"] | |
} | |
task genWsdlClasses() << { | |
ant.echo(message: "Generating Classes for use with WSDL") | |
ant.taskdef( | |
name: "genClassesFromWSDL", | |
classname: "org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask", | |
classpath: configurations.axisGenAntTask.asPath | |
) | |
ant.genClassesFromWSDL(url: "https://partner.r01.ru:1443/partner_api.khtml?wsdl", | |
output: "src/main/java", | |
deployscope: "session", | |
serverSide: "false", | |
noWrapped: "true", | |
skeletonDeploy: "false", | |
verbose: "true", | |
typeMappingVersion: "1.2", | |
testcase: "no") { | |
mapping(namespace: "urn:TestNS:XML:Jbo/01:Types", package: "com.mypackage.runtime") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment