-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathota.yaml
More file actions
113 lines (112 loc) · 3.11 KB
/
Copy pathota.yaml
File metadata and controls
113 lines (112 loc) · 3.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#
# █████
# ░░███
# ██████ ███████ ██████
# ███░░███░░░███░ ░░░░░███
# ░███ ░███ ░███ ███████
# ░███ ░███ ░███ ███ ███░░███
# ░░██████ ░░█████ ░░████████
# ░░░░░░ ░░░░░ ░░░░░░░░
#
# Copyright (C) 2026 — 2026, Ota. All Rights Reserved.
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
# You may not use this file except in compliance with that License.
# Unless required by applicable law or agreed to in writing, software distributed under the
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific language governing permissions
# and limitations under the License.
#
# If you need additional information or have any questions, please email: os@ota.run
version: 1
project:
name: basic-java
description: Basic Java repo with toolchain-owned Java plus Maven tasks
type: application
toolchains:
java:
version: "22"
tools:
maven: "3.9"
checks:
- name: maven-installed
kind: precondition
severity: error
run: mvn --version
tasks:
setup:
description: Warm the Maven dependency graph
prepare:
kind: dependency_hydration
medium: package_dependencies
source:
kind: maven
cwd: .
requirements:
toolchains:
- java
tools:
maven: "3.9"
checks:
- maven-installed
effects:
network: true
network_kind: dependency_hydration
build:
description: Compile and package the repo
command:
exe: mvn
args:
- package
depends_on:
- setup
requirements:
toolchains:
- java
tools:
maven: "3.9"
test:
description: Run the Maven test suite
command:
exe: mvn
args:
- test
depends_on:
- setup
requirements:
toolchains:
- java
tools:
maven: "3.9"
workflows:
default: verify
verify:
description: Canonical Java toolchain warmup and verification path
setup:
task: setup
run:
task: test
notes: |
Use this when you want the repo front door instead of calling Maven tasks directly.
`toolchains.java` owns Java and `javac`, while Maven remains a standalone build tool.
agent:
entrypoint: setup
default_task: test
safe_tasks:
- setup
- build
- test
verify_after_changes:
- test
writable_paths:
- src
- test
- docs
protected_paths:
- ota.yaml
notes: |
Use `ota validate` before changes and `ota workflows` to inspect the dependency-and-test path.
Keep Java ownership under `toolchains.java`, leave Maven under `tools`, and use `ota run test`
to verify Java changes.