-
-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (58 loc) · 2.25 KB
/
build.gradle
File metadata and controls
63 lines (58 loc) · 2.25 KB
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
// First, apply the publishing plugin
plugins {
id "maven-publish"
id "com.gradle.plugin-publish" version "2.0.0"
id "java-gradle-plugin"
}
// If your plugin has any external java dependencies, Gradle will attempt to
// download them from JCenter for anyone using the plugins DSL
// so you should probably use JCenter for dependency resolution in your own
// project.
repositories {
mavenLocal()
mavenCentral()
}
def pom = new groovy.xml.XmlSlurper().parse(projectDir.toPath().getParent().resolve("pom.xml").toFile())
//noinspection GroovyAccessibility
def joobyVersion = project.properties['joobyVersion'] ?: pom.parent.version
// Unless overridden in the pluginBundle config DSL, the project version will
// be used as your plugin version when publishing
version = "${joobyVersion}"
group = "io.jooby"
dependencies {
implementation "io.jooby:jooby-run:$version"
implementation "io.jooby:jooby-openapi:$version"
implementation "io.jooby:jooby-trpc-generator:$version"
implementation "com.github.spotbugs:spotbugs-annotations:4.7.2"
}
// Use java-gradle-plugin to generate plugin descriptors and specify plugin ids
gradlePlugin {
website = 'https://jooby.io'
vcsUrl = 'https://github.com/jooby-project/jooby'
description = 'Jooby is a modular, high-performance web framework for Java and Kotlin. Designed ' +
'for simplicity and speed, it gives you the freedom to build on your favorite server with a ' +
'clean, modern API.'
plugins {
joobyRun {
id = 'io.jooby.run'
implementationClass = 'io.jooby.gradle.JoobyPlugin'
displayName = 'Jooby Run plugin'
tags = ['jooby', 'run']
description = 'Run/restart your application on code changes without exiting the JVM'
}
openAPI {
id = 'io.jooby.openAPI'
implementationClass = 'io.jooby.gradle.JoobyPlugin'
displayName = 'Jooby OpenAPI plugin'
tags = ['jooby', 'openAPI']
description = 'Generates an Open-API compatible output from your application'
}
trpc {
id = 'io.jooby.trpc'
implementationClass = 'io.jooby.gradle.JoobyPlugin'
displayName = 'Jooby tRPC plugin'
tags = ['jooby', 'trpc', 'typescript']
description = 'Generates a tRPC-compatible TypeScript API definition from your application'
}
}
}