Skip to content

Commit 5a13de4

Browse files
committed
move remaining pieces of sbt subproject to sbt_pending and fix notices
1 parent 108ecf5 commit 5a13de4

File tree

588 files changed

+24
-80
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

588 files changed

+24
-80
lines changed
File renamed without changes.

run/NOTICE

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* sbt -- Simple Build Tool
2+
* Copyright 2008 Mark Harrah
3+
*
4+
* Partially based on exit trapping in Nailgun by Pete Kirkham,
5+
* copyright 2004, Martian Software, Inc
6+
* licensed under Apache 2.0 License.
7+
*/
8+
9+
Portions based on code by Pete Kirkham in Nailgun
10+
Copyright 2004, Martian Software, Inc
11+
Licensed under the Apache License, Version 2.0 (see licenses/LICENSE_Apache)

sbt/NOTICE

-12
This file was deleted.
File renamed without changes.

sbt/LICENSE sbt_pending/LICENSE

File renamed without changes.

sbt_pending/NOTICE

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Simple Build Tool (sbt)
2+
Copyright 2008, 2009, 2010 Steven Blundy, Josh Cough, Nathan Hamblen, Mark Harrah, David MacIver, Mikko Peltonen, Tony Sloane, Vesa Vilhonen
3+
Licensed under BSD-style license (see LICENSE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sbt/src/main/scala/sbt/BasicProjectTypes.scala sbt_pending/src/main/scala/sbt/BasicProjectTypes.scala

+2-68
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ trait IvyTasks extends Project
112112
trait ManagedProject extends ClasspathProject with IvyTasks
113113
{
114114
/** This is the public ID of the project (used for publishing, for example) */
115-
def moduleID: String = normalizedName + appendable(crossScalaVersionString)
115+
def moduleID: String = normalizedName
116116
/** This is the full public ID of the project (used for publishing, for example) */
117-
def projectID: ModuleID = ModuleID(organization, moduleID, version.toString).artifacts(artifacts.toSeq : _*)
117+
def projectID: ModuleID = ModuleID(organization, moduleID, version.toString).artifacts(artifacts.toSeq : _*).cross(true)
118118

119119
/** This is the default name for artifacts (such as jars) without any version string.*/
120120
def artifactID = moduleID
@@ -132,22 +132,6 @@ trait ManagedProject extends ClasspathProject with IvyTasks
132132
/** The base path to which dependencies in configuration 'config' are downloaded.*/
133133
def configurationPath(config: Configuration): Path = managedDependencyPath / config.toString
134134

135-
import StringUtilities.nonEmpty
136-
implicit def toGroupID(groupID: String): GroupID =
137-
{
138-
nonEmpty(groupID, "Group ID")
139-
new GroupID(groupID, buildScalaVersion)
140-
}
141-
implicit def toRepositoryName(name: String): RepositoryName =
142-
{
143-
nonEmpty(name, "Repository name")
144-
new RepositoryName(name)
145-
}
146-
implicit def moduleIDConfigurable(m: ModuleID): ModuleIDConfigurable =
147-
{
148-
require(m.configurations.isEmpty, "Configurations already specified for module " + m)
149-
new ModuleIDConfigurable(m)
150-
}
151135

152136
/** Creates a new configuration with the given name.*/
153137
def config(name: String) = new Configuration(name)
@@ -478,56 +462,6 @@ object BasicDependencyPaths
478462
val DefaultDependencyDirectoryName = "lib"
479463
val PomExtension = ".pom"
480464
}
481-
482-
object StringUtilities
483-
{
484-
def normalize(s: String) = s.toLowerCase.replaceAll("""\s+""", "-")
485-
def nonEmpty(s: String, label: String)
486-
{
487-
require(s.trim.length > 0, label + " cannot be empty.")
488-
}
489-
def appendable(s: String) = if(s.isEmpty) "" else "_" + s
490-
}
491-
final class GroupID private[sbt] (groupID: String, scalaVersion: String) extends NotNull
492-
{
493-
def % (artifactID: String) = groupArtifact(artifactID)
494-
def %% (artifactID: String) =
495-
{
496-
require(!scalaVersion.isEmpty, "Cannot use %% when the sbt launcher is not used.")
497-
groupArtifact(artifactID + appendable(scalaVersion))
498-
}
499-
private def groupArtifact(artifactID: String) =
500-
{
501-
nonEmpty(artifactID, "Artifact ID")
502-
new GroupArtifactID(groupID, artifactID)
503-
}
504-
}
505-
final class GroupArtifactID private[sbt] (groupID: String, artifactID: String) extends NotNull
506-
{
507-
def % (revision: String): ModuleID =
508-
{
509-
nonEmpty(revision, "Revision")
510-
ModuleID(groupID, artifactID, revision, None)
511-
}
512-
}
513-
final class ModuleIDConfigurable private[sbt] (moduleID: ModuleID) extends NotNull
514-
{
515-
def % (configurations: String): ModuleID =
516-
{
517-
nonEmpty(configurations, "Configurations")
518-
import moduleID._
519-
ModuleID(organization, name, revision, Some(configurations))
520-
}
521-
}
522-
final class RepositoryName private[sbt] (name: String) extends NotNull
523-
{
524-
def at (location: String) =
525-
{
526-
nonEmpty(location, "Repository location")
527-
new MavenRepository(name, location)
528-
}
529-
}
530-
531465
import scala.collection.{Map, mutable}
532466
/** A Project that determines its tasks by reflectively finding all vals with a type
533467
* that conforms to Task.*/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)