Skip to content
This repository was archived by the owner on Jul 10, 2020. It is now read-only.

Commit ac55501

Browse files
author
Michael Oberwasserlechner
committed
chore(vaadin): create vaadin directory accepted resource zip
1 parent fd3e4ab commit ac55501

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

build.gradle

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,47 @@ jar {
4343
createAddonPom
4444
baseName = project.artifactId
4545
// Include sources
46-
sourceSets.main.java.srcDirs.each {
47-
from it
48-
}
46+
// sourceSets.main.java.srcDirs.each {
47+
// from it
48+
// }
4949

5050
manifest {
5151
// the manifest of the default jar is of type OsgiManifest
5252
name = project.artifactId
5353
attributes "Vaadin-Package-Version": "1"
5454
attributes "Implementation-Title": "Chart.js Add-on"
5555
attributes "Implementation-Version": project.version
56+
attributes "Implementation-Vendor": 'Michael Oberwasserlechner'
5657
instruction 'Import-Package', '!com.google.gwt.*', '!com.vaadin.client.*', '*'
5758
instruction 'Bundle-Vendor', 'Michael Oberwasserlechner'
5859
instruction 'Bundle-Description', 'Chart.js Add-on'
5960
instruction 'Bundle-DocURL', 'https://github.com/moberwasserlechner/vaadin-chartjs'
6061
}
6162
}
6263

64+
65+
task vaadinDirectory(type: Zip) {
66+
67+
dependsOn 'jar'
68+
dependsOn 'sourcesJar'
69+
dependsOn 'javadocJar'
70+
// create manifest
71+
mkdir 'build/libs/META-INF'
72+
new File("build/libs/META-INF/MANIFEST.MF").text =
73+
"""Manifest-Version: 1.0
74+
Vaadin-Package-Version: 1
75+
Vaadin-Addon: """+project.artifactId+"""-"""+project.version+""".jar
76+
Vaadin-License-Title: MIT
77+
Implementation-Vendor: Michael Oberwasserlechner
78+
Implementation-Title: Chart.js Add-on
79+
Implementation-Version: """+project.version+"""
80+
"""
81+
from 'build/libs'
82+
include '*.jar'
83+
include '*/*'
84+
destinationDir(file('build/libs/'))
85+
}
86+
6387
// custom tasks for creating source/javadoc jars
6488
task sourcesJar(type: Jar, dependsOn: classes) {
6589
classifier = 'sources'

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group=com.byteowls
22
artifactId=vaadin-chartjs
3-
version=1.1.0
3+
version=1.1.1
44

55
vaadinVersion=8.0.6

0 commit comments

Comments
 (0)