-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
110 lines (99 loc) · 2.98 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
plugins {
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '1.3.0'
id 'maven-publish'
id 'groovy'
id 'java'
id 'java-library'
}
group 'io.github.yojo-generator'
version '0.5.3'
//LocalPublishing
//publishing {
// repositories {
// maven {
// url = "$buildDir/repo"
// }
// }
//}
allprojects {
repositories {
mavenCentral()
}
}
//jar {
// zip64 = true
// from {
// configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
// duplicatesStrategy(DuplicatesStrategy.INCLUDE)
// }
//}
dependencies {
implementation gradleApi()
implementation localGroovy()
api 'io.github.yojo-generator:generator:1.0.3'
testImplementation 'org.junit.jupiter:junit-jupiter:5.5.2'
}
test {
useJUnitPlatform()
}
//publishing {
// repositories {
// maven {
// name = "GitHubPackages"
// url = uri("https://maven.pkg.github.com/yojo-generator/gradle-plugin")
// credentials {
// username = project.findProperty("user") ?: System.getenv("USERNAME")
// password = project.findProperty("token") ?: System.getenv("TOKEN")
// }
// }
// }
//}
// publications {
// pluginPublication(MavenPublication) {
// artifactId = "gradle-plugin"
// groupId = "ru.yojo"
// version = "0.0.1"
// pom {
// packaging = "jar"
// name.set("YOJO gradle plugin")
// url.set("https://github.com/yojo-generator/gradle-plugin")
// description.set("This yojo gradle plugin")
//
// licenses {
// license {
// name.set("The Apache License, Version 2.0")
// url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
// }
// }
//
// developers {
// developer {
// id.set("YOJO Generator Plugin")
// name.set("Vladimir Morozkin")
// email.set("jvmorozkin@gmail.com")
// }
// }
// }
// }
// }
//}
ext {
junitVersion = '5.8.2'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
gradlePlugin {
plugins {
yojoGradlePlugin {
website = 'https://github.com/yojo-generator/gradle-plugin'
vcsUrl = 'https://github.com/yojo-generator/gradle-plugin'
id = 'io.github.yojo-generator.gradle-plugin'
implementationClass = 'ru.yojo.codegen.YojoPlugin'
displayName = 'YOJO Generator Gradle Plugin'
description = 'This is gradle-plugin for spring-boot application for generating Java classes from AsyncApi specification'
tags.set(['yojo', 'asyncapi', 'asyncapi-generator', 'yaml-pojo', 'pojo-builder', 'asyncapi-tools', 'asyncapi', 'yaml-parser'])
}
}
}