code: private Properties createProperties() {
      propertiesBuilder
        .setProject(project)
        .setSession(session);
  
      customizeProperties(propertiesBuilder);
  
      // convert to Properties for better compatibility, groovy doesn't care about types so its not a big deal
      Properties props = new Properties();
      props.putAll(propertiesBuilder.build());
      return props;
    }
docs: Create script execution properties.