-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (50 loc) · 1.25 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
import org.gradle.plugins.ide.eclipse.model.Facet
buildscript {
repositories {
mavenLocal()
maven {url "https://plugins.gradle.org/m2/"}
}
dependencies {
tasks.withType(JavaCompile) {options.encoding = "UTF-8"}
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'eclipse-wtp'
group="com.maqiao.was.d3";
version = '1.0'
sourceCompatibility = 1.8 // 设置 JDK 版本
targetCompatibility = 1.8
ext.vendor = 'Sunjian'
}
apply from:"dependencies.gradle"//项目依赖
sourceSets {
main {
resources {
srcDirs =["src/main/java"]
}
}
}
def projectUsePath ="D:/Eclipse/eclipse-oxygen/Workspaces/MaQiao3DPlugIn/lib"
jar {
manifest {
attributes ('Implementation-Title': 'MaQiao3DJavaProject',
'Implementation-Version': version,
'Created-By': vendor,
'Main-Class': 'com.maqiao.was.d3'
)
}
into('META-INF') {
from 'META-INF'
}
/* 拷贝jar文件到项目目录里 */
doLast {
copy {
from( 'build/libs')
into(projectUsePath)
include('MaQiao3DJavaProject-1.0.jar')
}
}
}