Prevent subproject from being published

4 views
Skip to first unread message

Heiko Seeberger

unread,
Aug 16, 2010, 6:10:57 AM8/16/10
to simple-b...@googlegroups.com
Hi,

How can I prevent a certain subproject from being published? As it is for testing only, it would also be OK if no artifacts are created.
 
Heiko

Company: weiglewilczek.com
Blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: scalamodules.org
Lift, the simply functional web framework: liftweb.net
Stambecco, highly scalable computing: stambecco.org
Akka - Simpler Scalability, Fault-Tolerance, Concurrency & Remoting through Actors: akkasource.org

Heiko Seeberger

unread,
Aug 20, 2010, 8:56:10 AM8/20/10
to simple-b...@googlegroups.com
Hi,

Is that possible? Have multiple subprojects and only some of these published?

Thanks

Heiko
--
Heiko Seeberger

Ross A. Baker

unread,
Aug 20, 2010, 10:42:07 PM8/20/10
to simple-build-tool
Heiko,

This may not be the best approach, but it works for me. I mix this
trait into whichever subprojects I don't want to publish:

trait UnpublishedProject
extends BasicScalaProject
{
override def publishLocalAction = Empty
override def deliverLocalAction = Empty
override def publishAction = Empty
override def deliverAction = Empty
override def artifacts = Set.empty
}

Thanks,
Ross

On Aug 20, 8:56 am, Heiko Seeberger <heiko.seeber...@googlemail.com>
wrote:
> Hi,
>
> Is that possible? Have multiple subprojects and only some of these
> published?
>
> Thanks
>
> Heiko
>

Mark Harrah

unread,
Aug 21, 2010, 5:24:35 PM8/21/10
to simple-b...@googlegroups.com
Ross, Heiko,

This is the approach I would recommend. I should not have put Empty where I did though[1], so just use your own:
def emptyTask = task { None }

-Mark

[1] there is now the odd looking '-empty' task available. It will be removed at some point.

Heiko Seeberger

unread,
Aug 23, 2010, 8:35:06 AM8/23/10
to simple-b...@googlegroups.com
Ross, Mark,

Thanks! That works. I modified it a little though in order to prevent the parent project from being published:

trait UnpublishedProject extends BasicManagedProject {
   override def publishLocalAction = task { None }
   override def deliverLocalAction = task { None }
   override def publishAction = task { None }
   override def deliverAction = task { None }
   override def artifacts = Set.empty
}

Heiko

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.

Reply all
Reply to author
Forward
0 new messages