@@ -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
6488task sourcesJar (type : Jar , dependsOn : classes) {
6589 classifier = ' sources'
0 commit comments