-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
192 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
testprojects/src/scala/org/pantsbuild/testproject/publish/classifiers/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
scala_library(name='classifiers', | ||
provides=artifact( | ||
org='org.pantsbuild.testproject.publish', | ||
name='classifiers', | ||
repo=testing, | ||
publication_metadata=pants_library('This is a test. This is only a test.') | ||
), | ||
dependencies=[ | ||
':compiler-interface', | ||
':incremental-compiler', | ||
':sbt-interface', | ||
], | ||
sources=['Hello.scala'] | ||
) | ||
|
||
SBT_REV='0.13.7' | ||
|
||
jar_library(name = 'compiler-interface', | ||
jars = [jar(org = 'com.typesafe.sbt', name = 'compiler-interface', rev = SBT_REV, | ||
classifier='sources', intransitive=True, | ||
artifacts=[ivy_artifact(name='compiler-interface', classifier='javadoc')])]) | ||
|
||
jar_library(name = 'incremental-compiler', | ||
jars = [jar(org = 'com.typesafe.sbt', name = 'incremental-compiler', rev = SBT_REV, | ||
intransitive=True)]) | ||
|
||
jar_library(name = 'sbt-interface', | ||
jars = [jar(org = 'com.typesafe.sbt', name = 'sbt-interface', rev = SBT_REV, | ||
intransitive=True, | ||
artifacts=[ivy_artifact(name='sbt-interface', classifier='javadoc')])]) |
5 changes: 5 additions & 0 deletions
5
testprojects/src/scala/org/pantsbuild/testproject/publish/classifiers/Hello.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package org.pantsbuild.testproject.publish.classifiers | ||
|
||
object Hello extends App { | ||
println("hi there") | ||
} |
72 changes: 72 additions & 0 deletions
72
...h_resources/org.pantsbuild.testproject.publish/classifiers/classifiers-0.0.1-SNAPSHOT.pom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated by pants! http://pantsbuild.github.io/ --> | ||
<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/maven-v4_0_0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.pantsbuild.testproject.publish</groupId> | ||
<artifactId>classifiers</artifactId> | ||
<packaging>jar</packaging> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<name>org.pantsbuild.testproject.publish:classifiers</name> | ||
<description>This is a test. This is only a test.</description> | ||
<url>http://pantsbuild.github.io/</url> | ||
<licenses> | ||
<license> | ||
<name>Apache License, Version 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<connection>scm:git:git@github.com:pantsbuild/pants.git</connection> | ||
<developerConnection>scm:git:git@github.com:pantsbuild/pants.git</developerConnection> | ||
<url>https://github.com/pantsbuild/pants</url> | ||
</scm> | ||
<developers> | ||
<developer> | ||
<name>The pants developers</name> | ||
<email>pants-devel@googlegroups.com</email> | ||
<url>https://github.com/pantsbuild/pants</url> | ||
</developer> | ||
</developers> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.scala-lang</groupId> | ||
<artifactId>scala-library</artifactId> | ||
<version>2.10.4</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.typesafe.sbt</groupId> | ||
<artifactId>sbt-interface</artifactId> | ||
<version>0.13.7</version> | ||
<scope>compile</scope> | ||
<classifier>javadoc</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.typesafe.sbt</groupId> | ||
<artifactId>compiler-interface</artifactId> | ||
<version>0.13.7</version> | ||
<scope>compile</scope> | ||
<classifier>javadoc</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.typesafe.sbt</groupId> | ||
<artifactId>compiler-interface</artifactId> | ||
<version>0.13.7</version> | ||
<scope>compile</scope> | ||
<classifier>sources</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.typesafe.sbt</groupId> | ||
<artifactId>incremental-compiler</artifactId> | ||
<version>0.13.7</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
41 changes: 41 additions & 0 deletions
41
...r_publish_resources/org.pantsbuild.testproject.publish/classifiers/ivy-0.0.1-SNAPSHOT.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). | ||
Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
--> | ||
<!-- generated by pants! --> | ||
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd" xmlns:m="http://ant.apache.org/ivy/maven"> | ||
|
||
<info organisation="org.pantsbuild.testproject.publish" module="classifiers" revision="0.0.1-SNAPSHOT" status="release" /> | ||
|
||
<configurations> | ||
<conf name="default"/> | ||
<conf name="sources"/> | ||
<conf name="javadoc"/> | ||
</configurations> | ||
|
||
<publications> | ||
<artifact conf="default" type="jar" ext="jar"/> | ||
<artifact conf="default" type="pom" ext="pom"/> | ||
<artifact conf="sources" type="source" m:classifier="sources" ext="jar"/> | ||
<artifact conf="javadoc" type="javadoc" m:classifier="javadoc" ext="jar"/> | ||
</publications> | ||
|
||
<dependencies> | ||
<dependency org="org.scala-lang" name="scala-library" rev="2.10.4"> | ||
<conf name="default" mapped="default"/> | ||
</dependency> | ||
<dependency org="com.typesafe.sbt" name="sbt-interface" rev="0.13.7" transitive="false"> | ||
<conf name="default" mapped="default"/> | ||
<artifact name="sbt-interface" type="jar" m:classifier="javadoc"/> | ||
</dependency> | ||
<dependency org="com.typesafe.sbt" name="compiler-interface" rev="0.13.7" transitive="false"> | ||
<conf name="default" mapped="default"/> | ||
<artifact name="compiler-interface" type="jar" m:classifier="javadoc"/> | ||
<artifact name="compiler-interface" type="jar" m:classifier="sources"/> | ||
</dependency> | ||
<dependency org="com.typesafe.sbt" name="incremental-compiler" rev="0.13.7" transitive="false"> | ||
<conf name="default" mapped="default"/> | ||
</dependency> | ||
</dependencies> | ||
</ivy-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters