90. The Shapes demo - packages
You’ll find the following packages in the shapes demo source code:
org.groovy_tutorial.shapesorg.groovy_tutorial.shapes.triangleorg.groovy_tutorial.shapes.app
These are all organised under the src/main/groovy directory:
└── org
└── groovy_tutorial
└── shapes
├── Circle.groovy
├── Rectangle.groovy
├── ShapeUtil.groovy
├── Sides.groovy
├── Square.groovy
├── Triangle.groovy
├── TwoDimensionalShape.groovy
├── app
│ ├── Main.groovy
│ └── package-info.groovy
├── package-info.groovy
└── triangle
├── TriangleEquilateral.groovy
├── TriangleIsosceles.groovy
├── TriangleRightAngled.groovy
├── TriangleSubtype.groovy
└── package-info.groovy
Within each package’s folder you’ll notice a package-info.groovy file. This isn’t a script but the documentation for the
package. The groovydoc system will use this file when preparing the application’s documentation.
For further information, please check out the JavaDoc documentation section on “Package Comment Files”.