forked from jhunters/jprotobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (53 loc) · 1.83 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/5.0/userguide/java_library_plugin.html
*/
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java'
id 'com.gradle.plugin-publish' version '0.11.0'
}
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
mavenCentral()
}
dependencies {
compile localGroovy()
compile gradleApi()
// This dependency is exported to consumers, that is to say found on their compile classpath.
compile 'com.baidu:jprotobuf:2.4.7'
compile 'org.jodd:jodd-core:3.5.2'
compile 'commons-io:commons-io:1.4'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
javadoc {
options{
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
}
}
version = "1.1.1" //配置插件的版本号
group = "com.baidu.jprotobuf" //插件的群组,插件的classpath会用到
pluginBundle {
website = 'https://github.com/jhunters/jprotobuf'
vcsUrl = 'https://github.com/jhunters/jprotobuf'
description = 'jprotobuf pre compile gradle plugin' //插件描述
tags = ['jprotobuf', 'precompile'] //插件的tag。可以通过这个在插件门户上搜索
plugins {
greetingsPlugin {
id = 'com.baidu.jprotobuf' //插件的id,到时候apply的插件id
displayName = 'jprotobuf pre compile gradle plugin'
}
}
}