Questions tagged [gretty]

Gretty is a feature-rich gradle plugin for running web-apps on embedded servlet containers. It supports Jetty versions 7, 8 and 9, Tomcat versions 7, 8 and 9, multiple web-apps and many more. It wraps servlet container functions as convenient Gradle tasks and configuration DSL.

84 questions
1
vote
1 answer

Fast reload with in-place web app and asset pipeline in Gradle/Gretty

I'm using Gretty to run my web application via gradle appRun. I'm also using the Gradle Asset Pipeline plugin to compile my Less files to CSS. I want to integrate with Gretty's Fast reload feature so that when I change a Less file, it automatically…
Nathan
  • 1,418
  • 16
  • 32
1
vote
1 answer

gradle, gretty - How to run a task in farm task?

I would like to run a task in farm task: farm { // run my task here. } Can anyone help me with this?
Le Kim Trang
  • 369
  • 2
  • 5
  • 17
1
vote
1 answer

How can I run appRunWar in a port other than the one defined in the build.gradle

I' having issues while trying to change the port for Gretty as indicated in the Gretty documentation. Gradle appRunWar -PhttpPort=8888 The only way it works is by changing the build.gradle gretty block gretty { http = 8888   contextPath =…
lac_dev
  • 1,336
  • 14
  • 20
0
votes
0 answers

How to start/stop backend for frontend system tests in gradle?

I'm using Java Spring as backend and Angular as frontend. I have a system test for the Frontend that requires that the backend has already started. In gradle I already have a npm-task that starts the frontend tests. How can I configure gradle or…
srboi
  • 21
  • 2
0
votes
1 answer

Upgrading from gretty 3.0.1 to 3.0.7 causes error could not get unknown property 'mainClass'

I am currently running gradle version 5.6.4. When trying to upgrade our gretty dependency from 3.0.1 to 3.0.5 or 3.0.7, I am running into this error with no other information: Exception in thread "Thread-65" groovy.lang.MissingPropertyException:…
Toofy
  • 804
  • 9
  • 19
0
votes
1 answer

Gradle 6.5.1 gretty 3.0.3 unable to run jetty

I am trying to build my first REST API, using jersey on Eclipse. This is my build.gradle: plugins { //id "com.dsvdsv.gradle.plugin" version "1.5.1" //id 'org.gretty' version '2.1.0' id "org.gretty" version "3.0.3" //id…
Prvt_Yadav
  • 324
  • 1
  • 6
  • 20
0
votes
1 answer

Alternatives to the Gradle Gretty Plugin

I’m trying to upgrade some old code that used the Jetty plugin in Gradle. I would like to upgrade the Gradle version beyond Gradle v3.5, but Gradle v4.0 and above has the Jetty plugin removed. Unfortunately, we are now required to use Gretty. I’m…
O.O.
  • 1,973
  • 6
  • 28
  • 40
0
votes
1 answer

Jetty doesn't initialize after gradle5.0 upgrade

Upgraded the project to gradle5.0. Jetty doesn't start anymore. I'm using org.gretty 3.0.1 version. From my build.gradle: plugins{ id 'java' id 'eclipse-wtp' id 'org.gretty' version '3.0.1' } gretty { httpPort = 8096 …
Nandu
  • 51
  • 6
0
votes
1 answer

Why Gretty is slow?

i have no idea why my gretty takes a very long time to run appStart tasks. Anyone have idea why it stop at the step "appStart", and i need to wait for about 30 minutes before it continue to the next step... Is it working on something in the…
Think Tank
  • 43
  • 8
0
votes
1 answer

Enable to run appStart task because of NoClassDefFoundError: Lorg/jCharts/properties/PieChart2DProperties

I have been successfully able to deploy my web app war file on tomcat using gretty task appStartWar or tomcatStartWar but when I try to deploy the same web app inplace using appStart or tomcatStart, I am getting error saying A child container failed…
0
votes
1 answer

Gretty, setting "Module specified Libraries" from repository

I asked for similar question jetty-jndi-resource-fails using Jetty only, which is described by Jetty documentation as Jetty: startup-classpath. Now I like to use "Module specified Libraries" and setup it over Gretty as repository dependencies. I…
Marek-A-
  • 474
  • 12
  • 29
0
votes
1 answer

Jetty JNDI resource fails: "java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSource"

When I started the Jetty (over Gretty plugin) I get the CNF exception. When I run gradlew :MyWebApplication:appRun -ds > g.log I see following configuration in debug: { "servletContainerId": "jetty9.3", "servletContainerDescription":…
Marek-A-
  • 474
  • 12
  • 29
0
votes
1 answer

Gretty configuration doesn't applied when using farmRun task

I'm using the Gretty sample from: https://github.com/gretty-gradle-plugin/gretty-sample In master build.gradle I modified only repositories URLs (to use mirror repo due proxy): build.gradle: apply plugin: 'java' buildscript { repositories { …
Marek-A-
  • 474
  • 12
  • 29
0
votes
1 answer

Gradle: How to include additional package to war?

I have package in root of gradle module. How can I include it in war build using gradle & gretty? It's non-java package, named 'frontend'.
0
votes
1 answer

Gretty static resources realoading problem

I am trying to configure gretty in a way which will allow me to reload static resources like *.html files (which lives inside standard src/webapp/WEB-INF) without server redeploy. However all my attempts were unsuccessful. I test it by changing html…
Oleg Baranenko
  • 398
  • 2
  • 16