pedestal

2025-01-07T20:31:34.508429Z

hello, I'm trying to run the embedded template following the documentation from http://pedestal.io/pedestal/0.7/guides/embedded-template.html.

2025-01-07T20:32:32.973989Z

getting error Execution error (ExceptionInfo) at clojure.tools.deps.extensions.maven/get-artifact (maven.clj:167). Could not find artifact io.pedestal:pedestal.jetty:jar:0.8.0-SNAPSHOT in central (https://repo1.maven.org/maven2/). Does anybody know where jetty:jar:0.8.0-SNAPSHOT was published?

hlship 2025-01-07T22:01:56.056269Z

Publishing the 0.8.0-snapshot seems to have confused deps-new. There's probably a way to shoe-horn version number into the template's "address".

2025-01-07T22:06:02.460719Z

Thanks a lot for quick response. I tried 0.7.2 but get a number of testing errors. Seems like 0.8.0 required for template to work. Is there a workaround?

hlship 2025-01-07T22:06:48.300209Z

> clojure  -Tnew create :template io.github.pedestal/pedestal%embedded%io.pedestal/embedded#0.7.2 :name com.blueant/peripheral
Checking out:  at 96e1a675ed82b405c273ec2cd13cda285788ca3e
Resolving io.github.pedestal/pedestal as a git dependency at 0.7.2
Creating project from io.pedestal/embedded in peripheral
> tree peripheral
peripheral
├── CHANGELOG.md
├── LICENSE
├── README.md
├── build.clj
├── deps.edn
├── dev
│   ├── com
│   │   └── blueant
│   │       └── peripheral
│   │           └── telemetry_test_init.clj
│   ├── dev.clj
│   └── user.clj
├── doc
│   └── intro.md
├── resources
│   ├── logback.xml
│   ├── pedestal-config.edn
│   └── public
│       └── index.html
├── src
│   └── com
│       └── blueant
│           └── peripheral
│               ├── main.clj
│               ├── routes.clj
│               ├── service.clj
│               └── telemetry_init.clj
├── start-jaeger.sh
├── test
│   └── com
│       └── blueant
│           └── peripheral
│               └── service_test.clj
└── test-resources
    ├── logback-test.xml
    └── pedestal-test-config.edn

17 directories, 20 files
>

2025-01-07T22:07:30.795709Z

Got it

hlship 2025-01-07T22:08:13.201759Z

That template is getting complicated; would be nice (if verbose) perhaps if we could specify a map in single quotes instead.

2025-01-07T22:10:12.811949Z

Agree, overall pedestal is fantastic. I dint have any problems at all with what I do. Template is the only thing that was giving me problems. Thank you very much for your help, greatly appreciated!

hlship 2025-01-07T22:10:38.097129Z

You welcome, and Pedestal is (and may ever be) a work in progress!

hlship 2025-01-07T22:11:05.252429Z

I'll update the docs to reference the version number in the deps-new command line.

hlship 2025-01-07T22:12:19.575859Z

Again, I remember being new to Pedestal and just lost in it; my efforts since 2022 have been to both pare down the available APIs to a managable number, and to add all the documentation I could have desperately used circa 2016.

👍 1
1