Giter VIP home page Giter VIP logo

plugin-profiles's Introduction

Scala IDE profiles

This pom project provides profiles to be able to compile a Scala IDE plugin. After setting this project as the parent, enabling the right profiles configures your plugin project to be compatible with Scala IDE.

Pay special attention to the Scala IDE versions, all profiles are not compatible with all versions

  • profiles for Scala versions
    • scala-2.12.x
    • scala-2.11.x (Scala IDE version 3.0.4 -> ..)
    • scala-2.10.x (Scala IDE version 3.0.0 -> 4.0.0-m2)
    • scala-2.9.x (Scala IDE version 3.0.0)
  • profiles for Scala IDE releases
    • scala-ide-stable (stable releases)
    • scala-ide-dev (milestones)
    • scala-ide-nightly (nightly builds)
  • profiles for Eclipse releases
    • eclipse-indigo (Scala IDE versions 2.0.0 -> 3.0.1)
    • eclipse-juno (Scala IDE versions 3.0.0 -> 4.0.0-m2)
    • eclipse-kepler (Scala IDE versions 4.0.0-m3 -> ..)
    • eclipse-luna (Scala IDE versions 4.0.0-m2 -> ..)

In addition, you can sign your builds and you get a uniform version qualifier ('${version.tag}-${version.suffix}-'yyyyMMddHHmm'-${buildNumber}').

Usage

For example, this pom.xml is all that's needed to get a build that works against any Scala version, Scala IDE and Eclipse combination:

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <prerequisites>
    <maven>3.0</maven>
  </prerequisites>

  <parent>
    <groupId>org.scala-ide</groupId>
    <artifactId>plugin-profiles</artifactId>
    <version>1.0.0</version>
  </parent>

  <groupId>org.scala-ide</groupId>
  <artifactId>org.scala-ide.play2.build</artifactId>
  <version>0.2.0-SNAPSHOT</version>
  <name>Play 2 Support for Scala IDE</name>
  <packaging>pom</packaging>

  <modules>
    <module>org.scala-ide.play2</module>
    <module>org.scala-ide.play2.tests</module>
    <module>org.scala-ide.play2.feature</module>
    <module>org.scala-ide.play2.source.feature</module>
    <module>org.scala-ide.play2.update-site</module>
  </modules>

</project>

Then you can build your project by running:

mvn -Peclipse-luna,scala-ide-stable,scala-2.11.x clean package

If you want to sign your build, just add the right jarsigner properties:

mvn -Dtycho.localArtifacts=ignore \
    -P eclipse-luna,scala-ide-stable,scala-2.11.x \
    -Dversion.tag='v' \
    -Djarsigner.storepass=*** \
    -Djarsigner.keypass=*** \
    -Djarsigner.keystore=/path/to/your.keystore \
    clean package

Create a build to be integrated in the Scala IDE ecosystem repositories

To make a build compatible with the tools creating the Scala IDE ecosystem repositories, an additionnal step is required before the actual build step. Run the following command to correctly set the versions of the Scala and Scala IDE dependencies:

mvn -Peclipse-luna,scala-ide-stable,scala-2.11.x -Pset-versions -Dtycho.style=maven --non-recursive exec:java

Release a new version (of plugin-profiles)

If you have fixes to this pom, you should publish a new version to Sonatype. Follow the OSS guide. If everything is configured correctly, releasing should be entirely managed by maven:

$ mvn release:clean
$ mvn release:prepare
$ mvn release:perform

There's an additional manual step:

  • go to Sonatype and inspect and release the staging repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.