forked from loafle/openapi-generator-original
		
	A bunch of gradle configurations have been deprecated, with drop in replacements. Relevant to this project: compile -> implementation testCompile -> testImplementation They're visible by executing e.g. ./gradlew build --warning-mode all with supporting documentation here: https://docs.gradle.org/6.6.1/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
		
			
				
	
	
		
			71 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
apply plugin: 'idea'
 | 
						|
apply plugin: 'eclipse'
 | 
						|
 | 
						|
group = 'org.openapitools'
 | 
						|
version = '1.0.0'
 | 
						|
 | 
						|
buildscript {
 | 
						|
    repositories {
 | 
						|
        maven { url "https://repo1.maven.org/maven2" }
 | 
						|
        jcenter()
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
repositories {
 | 
						|
    maven { url "https://repo1.maven.org/maven2" }
 | 
						|
    jcenter()
 | 
						|
}
 | 
						|
 | 
						|
apply plugin: 'java'
 | 
						|
apply plugin: 'maven'
 | 
						|
 | 
						|
sourceCompatibility = JavaVersion.VERSION_11
 | 
						|
targetCompatibility = JavaVersion.VERSION_11
 | 
						|
 | 
						|
install {
 | 
						|
    repositories.mavenInstaller {
 | 
						|
        pom.artifactId = 'petstore-native'
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
task execute(type:JavaExec) {
 | 
						|
   main = System.getProperty('mainClass')
 | 
						|
   classpath = sourceSets.main.runtimeClasspath
 | 
						|
}
 | 
						|
 | 
						|
task sourcesJar(type: Jar, dependsOn: classes) {
 | 
						|
    classifier = 'sources'
 | 
						|
    from sourceSets.main.allSource
 | 
						|
}
 | 
						|
 | 
						|
task javadocJar(type: Jar, dependsOn: javadoc) {
 | 
						|
    classifier = 'javadoc'
 | 
						|
    from javadoc.destinationDir
 | 
						|
}
 | 
						|
 | 
						|
artifacts {
 | 
						|
    archives sourcesJar
 | 
						|
    archives javadocJar
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
ext {
 | 
						|
    swagger_annotations_version = "1.5.22"
 | 
						|
    jackson_version = "2.10.4"
 | 
						|
    junit_version = "4.13.1"
 | 
						|
    ws_rs_version = "2.1.1"
 | 
						|
}
 | 
						|
 | 
						|
dependencies {
 | 
						|
    implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
 | 
						|
    implementation "com.google.code.findbugs:jsr305:3.0.2"
 | 
						|
    implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version"
 | 
						|
    implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
 | 
						|
    implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
 | 
						|
    implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
 | 
						|
    implementation "org.openapitools:jackson-databind-nullable:0.2.1"
 | 
						|
    implementation 'javax.annotation:javax.annotation-api:1.3.2'
 | 
						|
    implementation "javax.ws.rs:javax.ws.rs-api:$ws_rs_version"
 | 
						|
    testImplementation "junit:junit:$junit_version"
 | 
						|
}
 |