Hi Meikel, it's been a while :)

Thanks a lot for getting me started! I had to tweak it a little, but
here's what now works for me:

dependencies {
    compile 'org.clojure:clojure:1.2.0'
    compile 'org.clojure:clojure-contrib:1.2.0'

    development "swank-clojure:swank-clojure:1.2.1" // <- NOTE the difference
}

task runSwank(type: clojuresque.ClojureExec) {
    classpath = project.files(
        project.sourceSets.main.clojure.srcDirs,
        project.sourceSets.main.classesDir,
        project.sourceSets.test.clojure.srcDirs,
        project.configurations.testRuntime,
        project.configurations.development
    )
    main = "swank.swank/start-repl" // <- NOTE the difference
    args = []
}


now after 'gradle runSwank' from project root I can 'M-x slime-connect'
to the local swank server running on port 4005.


Thanks again and greetings to Frankfurt!
Stefan

Meikel Brandmeyer <[email protected]> writes:

> Hi,
>
> Am Freitag, 27. Mai 2011 12:19:55 UTC+2 schrieb [email protected]:
>
>     can anybody recommend a way to integrate clojuresque (1.4.1) with SLIME? 
> I did
>     some googling but couldn't find any helpful pointers.
>
> You do something like:
>
> dependencies {
>     compile "org.clojure:clojure:1.3.+"
>
>     development "swank:swank:whateverversion" // <- Don't know the details.
> }
>
> task runSwank(type: ClojureExec) {
>     classpath = project.files(
>         project.sourceSets.main.clojure.srcDirs,
>         project.sourceSets.main.classesDir,
>         project.sourceSets.test.clojure.srcDirs,
>         project.configurations.testRuntime,
>         project.configurations.development
>     )
>     main = "swank.swank/start-server"
>     args = []
> }
>
> This should do the trick. If you have to set the options of the server 
> (different port), you'll have to write a wrapper, because swank expects 
> keywords, but ClojureExec passes arguments as strings.
>
> Hope that gets you started.
>
> Sincerely
> Meikel
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to