forked from timonback/springwolf-asyncapi-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (69 loc) · 1.73 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
plugins {
id 'java'
id 'com.github.node-gradle.node' version '7.0.2'
id 'maven-publish'
}
def isSnapshot = Boolean.valueOf(project.findProperty('SNAPSHOT'))
group = 'io.github.timonback'
version = '0.1.0' + (isSnapshot ? '-SNAPSHOT' : '')
sourceCompatibility = '1.8'
node {
version = '18.14.2'
npmVersion = '9.5.0'
download = true
}
npm_run_build {
inputs.file 'package.json'
inputs.file 'package-lock.json'
outputs.dir 'build'
}
task buildPages(type: NpmTask) {
args = ['run', 'build_pages']
}
jar {
dependsOn 'npm_run_build'
metaInf { from 'dist' into 'resources/springwolf/asyncapi-ui' }
}
java {
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId 'springwolf-asyncapi-ui'
groupId project.group
version project.version
pom {
name = 'springwolf-asyncapi-ui'
description = 'AsyncApi UI for Springwolf'
url = 'https://github.com/timonback/springwolf-asyncapi-ui'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'timonback'
name = 'Timon Back'
email = '[email protected]'
}
}
scm {
url = 'https://github.com/timonback/springwolf-asyncapi-ui'
}
}
}
}
repositories {
maven {
url = "https://maven.pkg.github.com/timonback/springwolf-asyncapi-ui"
credentials {
username = project.findProperty('MAVEN_USERNAME') ?: ''
password = project.findProperty('MAVEN_PASSWORD') ?: ''
}
}
}
}