-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
88 lines (72 loc) · 2.18 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
85
86
87
88
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.9.7"
}
}
apply plugin: "com.gradle.plugin-publish"
apply plugin: "groovy"
apply plugin: "idea"
apply plugin: "maven"
group = 'org.hibernate.gradle.tools'
version = '1.2.5-CUSTOM'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
}
pluginBundle {
website = 'https://github.com/institut-de-genomique/'
vcsUrl = 'https://github.com/institut-de-genomique/hibernatetools-gradle-plugin'
description = 'Hibernate tools plugin to reverse engineering database.'
plugins {
hibernatetoolsPlugin {
id = 'org.hibernate.gradle.tools'
displayName = 'Gradle hibernatetools plugin'
tags = ['hibernate', 'orm', 'databse', 'reverse engeneering']
version = version
}
}
}
import java.text.SimpleDateFormat
jar {
manifest {
attributes( "Implementation-Title": rootProject.name,
"Implementation-Version": version,
"Implementation-Vendor": "Genoscope, LABGeM",
"Implementation-Class": "org.hibernate.gradle.tools.HibernatePlugin",
"description": "Hibernate tools plugin to reverse engineering database.",
"Main-Class": "org.hibernate.gradle.tools.HibernatePlugin",
"Build-Date": new SimpleDateFormat("yyyy-MM-dd").format(new Date()),
"Build-Gradle": project.gradle.gradleVersion
)
}
}
task packageJavadoc(type: Jar, dependsOn: "javadoc") {
from javadoc.destinationDir
classifier = "javadoc"
}
task packageSources(type: Jar) {
from sourceSets.main.allSource
classifier = "sources"
}
artifacts {
archives jar
archives packageJavadoc
archives packageSources
}
dependencies {
repositories {
mavenCentral()
}
compile gradleApi()
compile localGroovy()
}