Skip to content

Instantly share code, notes, and snippets.

@joserobjr
Created June 4, 2017 21:09
Show Gist options
  • Save joserobjr/eb5c3a22aa6ded11f156d7c3aed7bc3b to your computer and use it in GitHub Desktop.
Save joserobjr/eb5c3a22aa6ded11f156d7c3aed7bc3b to your computer and use it in GitHub Desktop.
class CeylonMvnExample() {
shared void test() {
}
}
native("jvm")
module com.example.platestack
maven:"com.example.platestack:mvn-ceylon-plugin" "0.0.0-SNAPSHOT" {
}
"Default documentation for package `com.example.platestack`."
shared package com.example.platestack;
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.platestack</groupId>
<artifactId>mvn-ceylon-plugin</artifactId>
<version>0.1.0-SNAPSHOT</version>
<!-- The maven plugin requires that you write your dependencies both on pom.xml and module.ceylon -->
<dependencies>
<!-- The implicit language dependency must be also placed here, it's a ceylon-maven requirement -->
<dependency>
<groupId>org.ceylon-lang</groupId>
<artifactId>ceylon.language</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.ceylon-lang</groupId>
<artifactId>ceylon-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<!--
This is required if you intend to have Java modules that depend
on this Ceylon module, or if you want to publish your Ceylon module
using Maven.
-->
<explode>true</explode>
</configuration>
<!-- This plugs the Ceylon plugin into the compile, compileTest, test phases -->
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment