-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
104 lines (93 loc) · 3.16 KB
/
Copy pathbuild.gradle
File metadata and controls
104 lines (93 loc) · 3.16 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
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
plugins {
id 'scala'
id 'idea'
id 'java-library'
id 'application'
id 'maven-publish'
id 'signing'
}
group "com.lyrieek"
description "Log viewer in browser"
version '0.0.3'//-SNAPSHOT
sourceCompatibility = JavaVersion.VERSION_12
targetCompatibility = JavaVersion.VERSION_12
sourceSets.main.scala {
srcDirs = ['src/main/scala']
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
}
repositories {
mavenCentral()
maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
url 'https://maven.aliyun.com/repository/spring/'
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
implementation group: 'org.scala-lang', name: 'scala-library', version: '2.13.4'
implementation group: 'org.scala-lang', name: 'scala-compiler', version: '2.13.4'
implementation group: 'commons-io', name: 'commons-io', version: '2.8.0'
implementation group: 'org.scalatra', name: 'scalatra_2.13', version: '2.7.1'
implementation group: 'org.eclipse.jetty', name: 'jetty-webapp', version: '10.0.0'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.8.0-beta4'
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.8.0-beta4'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.2.3'
testImplementation 'org.scalactic:scalactic_2.13:3.2.6'
testImplementation 'org.scalatest:scalatest_2.13:3.2.6'
testImplementation 'org.scalatest:scalatest-flatspec_2.13:3.2.6'
}
//java {
// withJavadocJar()
// withSourcesJar()
//}
publishing {
repositories {
maven {
// def releasesRepoUrl = "$buildDir/repos/releases"
// def snapshotsRepoUrl = "$buildDir/repos/snapshots"
// url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username ossrhUsername
password ossrhPassword
}
}
}
publications {
mavenJava(MavenPublication) {
pom {
name = 'Log Viewer'
description = 'Log viewer in browser'
url = 'http://www.lyrieek.com/library'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'lyrieek'
name = 'lyrieek cn'
email = 'lyrieek@qq.com'
}
}
scm {
connection = 'https://github.com/lyrieek/log-viewer'
developerConnection = 'scm:git:git://github.com/lyrieek/log-viewer.git'
url = 'scm:git:ssh://git@github.com:lyrieek/log-viewer.git'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}