Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sources JAR in Maven #14

Closed
0x3333 opened this issue Jun 27, 2017 · 3 comments
Closed

Sources JAR in Maven #14

0x3333 opened this issue Jun 27, 2017 · 3 comments

Comments

@0x3333
Copy link

0x3333 commented Jun 27, 2017

Source JAR in Maven doesn't include the Kotlin sources:

# unzip -l spark-kotlin-1.0.0-alpha-sources.jar
Archive:  spark-kotlin-1.0.0-alpha-sources.jar
  Length      Date    Time    Name
---------  ---------- -----   ----
       93  05-30-2017 23:37   META-INF/MANIFEST.MF
        0  05-30-2017 23:37   META-INF/
        0  05-30-2017 23:36   dummy/
        0  05-30-2017 23:37   META-INF/maven/
        0  05-30-2017 23:37   META-INF/maven/com.sparkjava/
        0  05-30-2017 23:37   META-INF/maven/com.sparkjava/spark-kotlin/
      920  05-30-2017 23:36   dummy/JavadocDummy.java
     8372  05-30-2017 23:36   META-INF/maven/com.sparkjava/spark-kotlin/pom.xml
      124  05-30-2017 23:37   META-INF/maven/com.sparkjava/spark-kotlin/pom.properties
---------                     -------
     9509                     9 files
@perwendel
Copy link
Owner

What I've found both the sources and the javadoc plugins don't support kotlin so for pure kotlin projects dummies need to be provided when delivering to maven central.

@0x3333
Copy link
Author

0x3333 commented Jun 29, 2017

What about the includes directive to Apache Maven JAR Plugin?

https://maven.apache.org/plugins/maven-jar-plugin/examples/attached-jar.html

  Specify a list of fileset patterns to be included or excluded by adding <includes>/<include> or <excludes>/<exclude> and add a classifier in your pom.xml.

@0x3333
Copy link
Author

0x3333 commented Jun 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants